Jeff Peng wrote:
"return" statement with explicit "undef" at line 185, column 9. See page 199
of PBP. (Severity: 5)
I got the cpan test report, it pointed out the one above.
Is "return undef" not to be encouraged in current Perl?
Only if you want to explicitly return a single scalar value irrespective
of context. Using return with no value will respect context and return
undef in scalar context and an empty list in list context.
John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity. -- Damian Conway
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/