in reply to Large text files into arrays, accessing final elements
When dealing with large files, it is often helpful to 'rewind' your filehandles if you are checking the last couple of lines for something and then need to go back a bit or even back to the very beginning. If thats what you're after, check out tell and seekwhile (my $line = <$fh>){ if (#line matches what you're after...){ # Do action on it here... } }
|
|---|