You coulld use Tie::File
This does not read the whole file into memory.use Tie::File; use strict; use warnings; my @log_file_contents; tie @log_file_contents, 'Tie::File', "filename" or die "Can't open filename"; print "$log_file_contents[6]\n";
In reply to Re: reading the file using the line number
by tirwhan
in thread reading the file using the line number
by greatshots
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |