in reply to help neeed in unpack

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;

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.