in reply to reading a line from file two times
If so, the answer is simply use Fcntl qw(:seek); seek($file, (0 - length $line), SEEK_CUR) or die $!;
UPDATE: Oh, that's interesting! First answer is an absolute method and the second is relative. Hehe. davido also linked the two important docs. They're both worth a careful read at this point.
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reading a line from file two times
by greatshots (Pilgrim) on Dec 21, 2006 at 03:11 UTC | |
by jettero (Monsignor) on Dec 21, 2006 at 03:35 UTC | |
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 |