in reply to sub returning undef
What is special cased is return;, that is, a return without arguments. In scalar context, that will return an undefined value - in list context, it will return an empty list. This is done especially to help in cases you are using.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sub returning undef
by jonadab (Parson) on May 24, 2004 at 15:32 UTC | |
by Abigail-II (Bishop) on May 24, 2004 at 16:10 UTC |