Maybe using an array slice? As in (untested):
my(@ids,$text,$length); (@ids[0..9],$text,$length) = unpack("N10C40n",$buff) ;
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
In reply to Re^2: unpack() to several variables
by psini
in thread unpack() to several variables
by Saladino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |