unpack counts spaces as characters of their own. You might want the following unpack template:
$line="123 456 789"; @w=unpack('A3xA3xA3',$line); print "@w";
Or maybe you just want split:
my @w = split /\s/, $line;
In reply to Re: help neeed in unpack
by Corion
in thread help neeed in unpack
by uva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |