Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://975958]
help
Chatterbox?
[Corion]: ;)
[Discipulus]: for the moment I just lead the Perl 99 bottle of beer ladder..
[Discipulus]: fibonacci in 34.. uh!!

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2017-10-20 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (260 votes). Check out past polls.

    Notices?