Next | Tricks of the Wizards | 67 |
It's easy to make an array that mirrors the contents of a file
tie @FILE, 'MirrorFile', $filename or die ...;
Then
print $FILE[13]; # Print line 13
for (@FILE) { if (/something/) { ... } }
Next | Copyright © 2003 M. J. Dominus |