in reply to Re: Re: Re: How to say 'oops' in OOPs?
in thread How to say 'oops' in OOPs?
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.
|
|---|