summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>2003-02-19 03:54:45 +0000
committerchip <chip@pobox.com>2003-02-19 03:54:45 +0000
commit13dcffc60adeca175c32a1ea11ec8756d4853ad2 (patch)
treefe53ada3730ca7574b306ba6c164d7222487f5e4 /pod
parent8c63d93843745ff8766bc75490d35dc2b080c5c0 (diff)
downloadperl-13dcffc60adeca175c32a1ea11ec8756d4853ad2.tar.gz
Support one-parameter unpack(), which unpacks $_.
p4raw-id: //depot/perl@18751
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod4
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