Hers' a sample implementation
my @line_offsets; push @line_offsets, tell *FOO; while (my $line = <FOO>) { push @line_offsets, tell *FOO; if ( foobar() ) { seek *FOO, $line_offsets[29]; } }
In reply to Re: Re: FILE operation in PERL
by diotalevi
in thread FILE operation in PERL
by ramesh_nathan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |