diff options
author | Chip Salzenberg <chip@pobox.com> | 2003-02-19 03:54:45 +0000 |
---|---|---|
committer | chip <chip@pobox.com> | 2003-02-19 03:54:45 +0000 |
commit | 13dcffc60adeca175c32a1ea11ec8756d4853ad2 (patch) | |
tree | fe53ada3730ca7574b306ba6c164d7222487f5e4 /pod | |
parent | 8c63d93843745ff8766bc75490d35dc2b080c5c0 (diff) | |
download | perl-13dcffc60adeca175c32a1ea11ec8756d4853ad2.tar.gz |
Support one-parameter unpack(), which unpacks $_.
p4raw-id: //depot/perl@18751
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 355ada86f7..7fed9c0239 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5944,10 +5944,14 @@ If LIST is omitted, uses C<$_>. =item unpack TEMPLATE,EXPR +=item unpack TEMPLATE + C<unpack> does the reverse of C<pack>: it takes a string and expands it out into a list of values. (In scalar context, it returns merely the first value produced.) +If EXPR is omitted, unpacks the C<$_> string. + The string is broken into chunks described by the TEMPLATE. Each chunk is converted separately to a value. Typically, either the string is a result of C<pack>, or the bytes of the string represent a C structure of some |