![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: calling sub and returning value from the same lineby jdalbec (Deacon) |
on Jan 09, 2005 at 20:43 UTC ( #420744=note: print w/replies, xml ) | Need Help?? |
Is error() returning a false value? That would cause the behavior you describe. Remember that <EXPR> and <EXPR> executes the second expression only if the first expression is true. To avoid this dependence on the return value of error() you could try
In Section
Seekers of Perl Wisdom
|
|