Next | Tricks of the Wizards | 34 |
Here's a more interesting example
It's like a regular filehandle
But it has a remember operation that remembers the current file position
And a gobackto operation that goes back to a saved position
Changing positions is accomplished with Perl's seek and tell functions
my $pos = tell FH; seek FH, $pos, 0;
Next | Copyright © 2003 M. J. Dominus |