retrun thatroutine() if thatroutine()That calls thatroutine() twice, which will perform things twice. Not good.
if (thatroutine()) {return $_}$_ isn't getting set there. Are you expecting the variable to be psychic?
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re^3: looking for a good idiom: return this if this is true
by merlyn
in thread looking for a good idiom: return this if this is true
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |