diff options
Diffstat (limited to 'pod/perlfunc.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 |