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
In reply to Re: reading a line from file two times
by jettero
in thread reading a line from file two times
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |