open F, 'filename.ext' or die $!; . . seek F, 0, 0; # Move pointer back to start of file
This approach is advantageous where the file may be particularly large in size and resources may be constrained.
In reply to Re: read a file twice...
by rob_au
in thread read a file twice...
by gdnew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |