in reply to File::Binary:howto goto a position in file
#! /usr/bin/perl use strict ; use Fcntl 'SEEK_SET'; use IO::Seekable; # not sure if this will help our @ISA = qw(IO::Seekable); open IN,"<fio.pl" ; binmode IN ; my $reclen = 1 ; my $binrec ; while ( read(IN, $binrec, $reclen) ) { print "".unpack("A",$binrec) ; } ....... # seek ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Binary:howto goto a position in file
by ikegami (Patriarch) on Mar 12, 2006 at 17:41 UTC | |
by jeanluca (Deacon) on Mar 12, 2006 at 18:22 UTC | |
by ikegami (Patriarch) on Mar 13, 2006 at 01:37 UTC | |
by jeanluca (Deacon) on Mar 13, 2006 at 12:34 UTC | |
by ikegami (Patriarch) on Mar 13, 2006 at 15:13 UTC |