Does this fit what you're looking for?
sub foo { return shift->{some_obj}->some_method ? 1 : undef; }
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
In reply to Re: Elegant way to return true or nothing from a subroutine?
by chargrill
in thread Elegant way to return true or nothing from a subroutine?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |