This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add note about map in scalar context
authorGurusamy Sarathy <gsar@cpan.org>
Wed, 24 Mar 1999 08:33:59 +0000 (08:33 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Wed, 24 Mar 1999 08:33:59 +0000 (08:33 +0000)
p4raw-id: //depot/perl@3144

pod/perlfunc.pod

index 64f5aa4..c973d0c 100644 (file)
@@ -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