Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
[Corion]: Lady_Aleena: Hopefully someone would step up to the plate!
[Lady_Aleena]: Corion, I could give the password to the gods to hold onto just in case.
[Discipulus]: Justin Case god can always get your pwd LA ;=) they all see, they all ear, they all know ;=)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-04-26 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.