in reply to Elegant way to return true or nothing from a subroutine?
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($,,$;,$*,$/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Elegant way to return true or nothing from a subroutine?
by Anonymous Monk on Oct 10, 2006 at 02:00 UTC | |
by GrandFather (Saint) on Oct 10, 2006 at 02:14 UTC | |
by chromatic (Archbishop) on Oct 10, 2006 at 04:33 UTC | |
by fenLisesi (Priest) on Oct 10, 2006 at 12:20 UTC |