in reply to Fast way to read from file
Atm. i'm reading info on Tie::File (which should allow read/write, but i'm not intrested on write to that file).
Than it would seem to me that the tie is not necessary. A quick-n-dirty way would be something like:
But I'm pretty sure there is a "nicer" way to handle this. And I'm quite sure I miss the true question here :(my $i = 0; # counter that will increment with each line my $q = 33;# the line you want my $line; # this variable will hold your line in the end open (FILE, "<$file"); while(<FILE>) { $line = $_ if ($q == $i); $i++; } close FILE;
--
B10m
|
|---|