in reply to extract part of line
This reads 100 bytes of the file at a time then splits each chunk on the described byte boundaries. See. the unpack(), pack() and perlvar() manpages for more details.{ open(my $fh, "somfile.xyz") or die("ack - $!"); local $/ = \100; my @info; push @info, unpack('C6C10C10C10C64', $_) while <$fh>; }
_________
broquaint
[1] this code is untested but the theory behind it should follow
|
|---|