The above coed still prints the next line after using seek. am I missing something there in the seek function ?if ( $line =~ /NEWTABLE/) { print "b4 seek $line\n"; print "len :$length:\n"; seek(FH, (0 - length($line)), SEEK_CUR); chomp($line=<FH>); print "--> $line\n"; exit; }
In reply to Re^2: reading a line from file two times
by greatshots
in thread reading a line from file two times
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |