Perl scripting

Can anyone help .....
I am prettey new to perl but would like to do the following :- write a script that would open one or more log files and select a few lines from each and create a new file with the selected lines from the logs.
Thanx

[Snipped by LivinFree]
Crawler - that was innapropriate.

It was counter-productive and a waste of time.

"A little knowledge is a scary thing"

Okay, what have you got so far? Let's see some code?

Being new to Perl does not get free scripts for you. People know how to do that because they learned Perl.

Here's a hint though:

prompt$ perldoc -f open

or

prompt$ perldoc FileHandle

ur calling him lame? what's up with the <b> , </b>? :smiley: just kidding! no offence, i just like to deflate bubles. you don't have to do the script for him, just give examples! think of it as a compliment that he seeks out your vast wisdom!

Basically you will need to load the log file entirely into an array, or line by line because you are looking to separate items. The file system of perl in not very efficient, but nonetheless, what you ask for is VERY easy, VERY common and VERY obvious in the books, texts and examples. If you get stuck, let me know, happy to TEACH but not DO IT FOR YOU......

Depending on your OS, you may NOT be able to follow some of the former advice, or, it may be to your advantage, again, this depends on your os, not perl..... i.e. OSX, AIX, UNIX5,WIN2K,Linux,DOS, and also how your server is set up, is this under an Apache or IIS server or all by it's lonesome...

Nytok