in reply to Re: Elegant way to return true or nothing from a subroutine?
in thread Elegant way to return true or nothing from a subroutine?
return defined(wantarray) ? wantarray ? () : undef : NOTHING;
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Elegant way to return true or nothing from a subroutine?
by gaal (Parson) on Oct 10, 2006 at 17:16 UTC |