Just another Perl shrine | |
PerlMonks |
Re^2: looking for a good idiom: return this if this is trueby Zaxo (Archbishop) |
on Mar 05, 2005 at 18:38 UTC ( [id://436939]=note: print w/replies, xml ) | Need Help?? |
The || operator is the high priority logical or, so if thatroutine() evaluates false, die is evaluated before return is. Update: Oops, I misunderstood your objection, which is correct: If the eval return was effective in the foo() call, should have printed "baz". After Compline,
In Section
Seekers of Perl Wisdom
|
|