undef and ref to undef

Peter Corlett abuse at cabal.org.uk
Wed Jun 18 13:10:46 BST 2008


On Wed, Jun 18, 2008 at 12:44:48PM +0100, Ian Docherty wrote:
> Why would someone return \undef rather than undef from a function/method
> and what is the advantage? Just something I came across recently that
> seemed rather odd.

IIRC, \undef is the lowest-overhead true value, so it may be a misguided
attempt to save memory.



More information about the london.pm mailing list