Re: code line of the day

Smylers <[email protected]> Thu, 7 Sep 2006 16:54:29 +0100
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
Randal L. Schwartz writes:

> >>>>> "Ronald" == Ronald J Kimball <[email protected]> writes:
> 
> Ronald> Why would it throw warnings?  ref() returns empty string if
> Ronald> the argument isn't a reference.
> 
> At one point, I'm sure it returned undef on a non-reference.

reftype in Scalar::Util returns undef on a non-reference, so maybe
that's what you were thinking of.

Smylers