Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Can you explain the result?

by Utilitarian (Vicar)
on Dec 06, 2011 at 14:17 UTC ( #942039=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Can you explain the result?
in thread Can you explain the result?

Indeed it is, if you want something evaluated put it in parenthesis to be sure

return (1 and 0);
returns 0 as you would expect.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."


Comment on Re^5: Can you explain the result?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-11-24 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (135 votes), past polls