P
perlistpaul
Hello everyone,
my purpose of the code is to do the following, put number into array,
and extracts the first 8bits from each stored number, interprets there
8bits chunks as characters.
Isn't it correct?
--------------------------------------
for(@bitplay)
{
$count++;
print pack("A6x5A1x1A1x3 s","Number","#",$count,$_),"\n";
}
my $str=pack("lll",@bitplay);
print "String is ". $str."\n";
my purpose of the code is to do the following, put number into array,
and extracts the first 8bits from each stored number, interprets there
8bits chunks as characters.
Isn't it correct?
--------------------------------------
for(@bitplay)
{
$count++;
print pack("A6x5A1x1A1x3 s","Number","#",$count,$_),"\n";
}
my $str=pack("lll",@bitplay);
print "String is ". $str."\n";