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.
[reply]
In Section
Seekers of Perl Wisdom