Any array you give as a parameter will gobble up all remaining items. So the following will work for you I guess:
my ($first, @rest) = unpack "U20A10A10A10", $string;
In reply to Re^3: help needed in storing the return values of unpack
by Corion
in thread help needed in storing the return values of unpack
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |