Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: defined ? to be : not

by Neighbour (Friar)
on Jun 13, 2012 at 11:43 UTC ( #975958=note: print w/ replies, xml ) Need Help??


in reply to defined ? to be : not

I dunno, since 5.10, we're given this possibility:

print 'Romeo ' . (($input // 'magic') eq 'to be' ? 'is' : 'is not') . +"\n";
..or, alternatively:
print 'Romeo is' . (($input // 'magic') ne 'to be' ? ' not' : '') . "\ +n";


Comment on Re: defined ? to be : not
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-07-31 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls