On Sun, Apr 20, 2008 at 1:49 PM, Richard Lee <[EMAIL PROTECTED]> wrote:
snip
>  can this be optimized in anyway?
>  open (my $source, '-|', "tail -100000 /server/server.log")
>
>  is this the best way to get large portion(well file itself is over 20
> times) of the file into find handle?
snip

Depending on how you are processing data, you may find
File::ReadBackwards* useful.

* http://search.cpan.org/dist/File-ReadBackwards/ReadBackwards.pm

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to