Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Returned value from subroutine is 1 when returning ""

by mjscott2702 (Pilgrim)
on Jan 06, 2011 at 16:21 UTC ( #880855=note: print w/replies, xml ) Need Help??


in reply to Returned value from subroutine is 1 when returning ""

You should use "or" instead of "||" here, since it has lower precedence - in fact, I believe(?) this is the recommended practice.
  • Comment on Re: Returned value from subroutine is 1 when returning ""

Replies are listed 'Best First'.
Re^2: Returned value from subroutine is 1 when returning ""
by DrHyde (Prior) on Jan 07, 2011 at 10:29 UTC
    I recommend not using 'or', 'and' etc, but instead using brackets to make precedence explicit.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://880855]
help
Chatterbox?
[Lady_Aleena]: It feels a bit nice doing something that needed doing afk. Helps get my mind off of on keyboard problems.
[Lady_Aleena]: Now hubby won't stop talking to the new remote control though.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-05-25 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?