in reply to Re^2: help needed in storing the return values of unpack
in thread help needed in storing the return values of unpack
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: help needed in storing the return values of unpack
by Anonymous Monk on Mar 23, 2006 at 09:45 UTC | |
by Corion (Patriarch) on Mar 23, 2006 at 09:49 UTC |