You can use the Tie::File module
use strict; use warnings; use Tie::File; my $file = shift @ARGV; tie my @arr, 'Tie::File', $file; #Update: (thanks Corion and JohnGG) #print $arr[15]."\n"; print $arr[14]."\n";
citromatik
In reply to Re: Going to a specific line in a file.
by citromatik
in thread Going to a specific line in a file.
by Jayesh Nair
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |