- or download this
>perl -e"print qq{\x03\x1A}" | perl -le"print uc unpack 'H*', <STDIN>"
031A
...
$perl -e'print qq{\x03\x1A}' | perl -le'print uc unpack "H*", <STDIN>'
031A
- or download this
my @records = map parse_rec($_),
map /(.{$RECSIZE})/sg,
do { local $/; <$fh> };
- or download this
my @records;
local $/ = \$RECSIZE;
...
while (<$fh>) {
push @records, parse_rec($_);
}
- or download this
my @records;
local *_;
while (read($fh, $_, $RECSIZE)) {
push @records, parse_rec($rec);
}