Tie::File still reads line by line, and has a lot of overhead. Alternative:
do { die("Premature EOF") if not defined <FILE>; } while $. < 14; my $line15 = <FILE>;
In reply to Re: Going to a specific line in a file.
by ikegami
in thread Going to a specific line in a file.
by Jayesh Nair
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |