develooper Front page | perl.perl5.porters | Postings from May 2008

Re: [perl #54974] Strange map {} Behavior When Returning Two Values

Thread Previous | Thread Next
From:
Bo Lindbergh
Date:
May 31, 2008 14:34
Subject:
Re: [perl #54974] Strange map {} Behavior When Returning Two Values
Message ID:
20080531213424.19387.qmail@lists.develooper.com
In article <60CB2FCC-7405-4026-8119-4F7851F5BBB8@pobox.com>,
 gbarr@pobox.com (Graham Barr) wrote:

>    %hash = map +( lc($_), 1 ), @array  # this is EXPR and works!

Add a note to perlop.pod about unary + being so utterly no-op that
it doesn't even force scalar context?


/Bo Lindbergh

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About