From dd99ebda2fe680296a282a6804ed647eefc7f935 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Wed, 24 Mar 1999 08:33:59 +0000 Subject: [PATCH] add note about map in scalar context p4raw-id: //depot/perl@3144 --- pod/perlfunc.pod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 64f5aa4..c973d0c 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2244,6 +2244,8 @@ element) and returns the list value composed of the results of each such evaluation. Evaluates BLOCK or EXPR in a list context, so each element of LIST may produce zero, one, or more elements in the returned value. +In scalar context, returns the total number of elements so generated. + @chars = map(chr, @nums); translates a list of numbers to the corresponding characters. And -- 2.7.4