Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: map BLOCK evaluation context

by ikegami (Pope)
on Mar 09, 2013 at 18:43 UTC ( #1022604=note: print w/ replies, xml ) Need Help??

in reply to Re: map BLOCK evaluation context
in thread map BLOCK evaluation context

The or operator always returns a scalar.

No, only the LHS operand is evaluated in scalar context. The RHS inherits.

>perl -E"@a=qw( a b c ); say( 0 or @a );" abc

Comment on Re^2: map BLOCK evaluation context
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022604]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-02-14 19:24 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (470 votes), past polls