411 REFERENCE · Wikibooks
Perl Programming/Keywords/unpack
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl unlink unshift Keywords
The unpack keyword
unpack does the opposite of pack by taking a string and expanding it out into a list of values. (In scalar context, only the first value produced is returned.)
Syntax
unpack TEMPLATE, EXPRESSION
unpack TEMPLATE
Example
my($what, $where, $howmuch) = @_;
unpack("x$where a$howmuch", $what);
See also
pack
Perl unlink unshift Keywords