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

Re^5: A more concise way to map the contents of an array.

by LanX (Canon)
on Dec 30, 2012 at 14:03 UTC ( #1010924=note: print w/ replies, xml ) Need Help??


in reply to Re^4: A more concise way to map the contents of an array.
in thread A more concise way to map the contents of an array.

Yes ... negating means evaluating in boolean context!

(well "pure"น is a risky adjective in the sphere of Perl's DWIM flexibility ... ;)

Anyway if this approach ever fails it certainly is a bug!

EDIT:

IMHO people prefer using 0 for false because it's easier to print and read than an empty string. But technically this is not necessary.

Cheers Rolf

น) lets say "well-defined"!


Comment on Re^5: A more concise way to map the contents of an array.
Re^6: A more concise way to map the contents of an array.
by Amblikai (Beadle) on Dec 30, 2012 at 14:31 UTC

    Ok, thanks again for your help!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2015-07-01 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls