Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: How to detect a returns value gracefullyby Joost (Canon) |
on Feb 26, 2009 at 11:43 UTC ( [id://746523]=note: print w/replies, xml ) | Need Help?? |
The code you posted doesn't work like you described.
There is no way to test if a function returns a list or not, since capturing the return value(s) forces the function to return either a list (which isn't an array) or a scalar. This is by design and you cannot work around it.
In Section
Seekers of Perl Wisdom
|
|