Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022604]
help
Chatterbox?
[stevieb]: it doesn't seem as though "there's an app for that"
[ambrus]: burst water pipe sucks
[Corion]: ambrus: Ugh - yes, that really sucks!
[stevieb]: good thing is that both sides of the break are completely frozen, so I was able to shut off the water to the building before any water leaks. I told the landlord last year to insulate that specific area better
[Corion]: stevieb: Our SV overlords don't know what "frozen pipe" means and think it's something like "frozen yogurt"
[ambrus]: huh... what does "SV" mean there?
[Marshall]: stevieb wish you well with water problems, my water was off all day Monday for repairs. Any more progress on .exe info problem?.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2016-12-08 18:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.