- or download this
sysread( FCS, my $data, $eData - $sData ) or die $!;
- or download this
my %text = split $delim, $text;
- or download this
my %text = split quotemeta( $delim ), $text;
- or download this
if( $text{ '$DATATYPE' } eq 'I' and defined $text{ '$P1R' } ) {
my $mask = $text{ '$P1R' } - 1;
$_ &= $mask for @data;
}
- or download this
my $par = $text{ '$PAR' };
for( my $i = 0; $i < @data; $i += $par ) {
print join ' ', @data[ $i .. $i + $par - 1 ];
}
- or download this
my %tmpls = (
'1,2,3,4' => {
...
D => { 64 => 'd>*' },
},
);
- or download this
my $tmpl = $tmpls{ $text{ '$BYTEORD' } }
{ $text{ '$DATATYPE' } }
{ $text{ '$P1B' } };
- or download this
#! perl -slw
use strict;
...
for( my $i = 0; $i < @data; $i += $par ) {
print join ' ', @data[ $i .. $i + $par - 1 ];
}