Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Can you explain the result?

by choroba (Canon)
on Dec 06, 2011 at 13:26 UTC ( #942017=note: print w/ replies, xml ) Need Help??


in reply to Can you explain the result?

Mind the difference between

return 1 and 0
and
return 1 && 0


Comment on Re: Can you explain the result?
Select or Download Code
Replies are listed 'Best First'.
Re^2: Can you explain the result?
by Anonymous Monk on Dec 06, 2011 at 13:32 UTC
    I know and has lower priority than &&,but it doesn't explain this issue.
      It does. Try with print instead of return to see.
        Do you mean the priority of and is even lower than return???

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2015-08-30 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (349 votes), past polls