in reply to Re: What should be returned in scalar context?
in thread What should be returned in scalar context?
The reference still behaves nicely in boolean context, but it contains all the information of the original array.What if the array is empty, how is the reference useful then in boolean context (or do you return undef in that case)?
|
|---|