Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Inchworm vs scalar: on boolean false value

by Eily (Monsignor)
on Dec 17, 2019 at 14:44 UTC ( #11110280=note: print w/replies, xml ) Need Help??


in reply to Inchworm vs scalar: on boolean false value

Also, if you're not using the ouput of map, it's shorter and easier to read (IMHO at least) to use a postfix for loop:

print "[$_]" for scalar( 1 == 0 ), ~~ '', ~~ scalar( 1 == 0 ), ~~ ( 1 == 0 );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2020-06-05 19:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (40 votes). Check out past polls.

    Notices?