in reply to Re: reading a line from file two times
in thread reading a line from file two times
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reading a line from file two times
by jettero (Monsignor) on Dec 21, 2006 at 03:35 UTC | |
|
Re^3: reading a line from file two times
by jesuashok (Curate) on Dec 21, 2006 at 03:22 UTC | |
by BrowserUk (Patriarch) on Dec 21, 2006 at 04:38 UTC | |
by jettero (Monsignor) on Dec 21, 2006 at 05:36 UTC | |
by jettero (Monsignor) on Dec 21, 2006 at 03:45 UTC |