Personally, I think "return undef;" is more clear to the reader than "return;" even though they have an identical effect.
Actually, they're not identical ;-)
A raw return will return an empty list in a list context and undef in scalar context. This can make writing code that needs to behave itself in either context easier. See return for more info.
In reply to Re^4: How to say 'oops' in OOPs?
by adrianh
in thread How to say 'oops' in OOPs?
by Willard B. Trophy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |