Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 examining the Monastery: (11)
As of 2014-10-23 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls