Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 meditating upon the Monastery: (5)
As of 2015-07-03 03:38 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 (48 votes), past polls