jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
The variable $pos remains empty.... ?use Fcntl 'SEEK_SET'; use IO::File ; my $fh = IO::File->new($file) ; $fh->binmode() ; $fh->read($binrec, 15) ; $pos = $fh->getpos() ; print "pos = $pos\n" ; ...... $fh->seek($pos,SEEK_SET) ; # go back
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HowTo retrieve the position in a file from the FH
by reasonablekeith (Deacon) on Mar 13, 2006 at 16:41 UTC | |
|
Re: HowTo retrieve the position in a file from the FH
by BrowserUk (Patriarch) on Mar 13, 2006 at 16:58 UTC | |
by Tanktalus (Canon) on Mar 13, 2006 at 17:28 UTC | |
by BrowserUk (Patriarch) on Mar 13, 2006 at 17:45 UTC |