|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: sub returning undefby Stevie-O (Friar) |
| on May 24, 2004 at 14:36 UTC ( #355925=note: print w/ replies, xml ) | Need Help?? |
|
One problem I see is that 'undef' is an array of one element. You should return an empty list: (). That will be treated as false by all conditionals (if unless while until).
--Stevie-O
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||