in reply to Re^3: ref eq "REF"
in thread ref == "REF"

Why's that? It could have worked just fine if ref had returned SCALAR in this case.

In fact, there's only place in Dumper.pm where REF is mentioned at all. Here's what it says:

if ($realtype eq 'SCALAR' || $realtype eq 'REF')

Clearly, Dumper would have lived just fine with "a reference is just a scalar" semantics.

Replies are listed 'Best First'.
Re^5: ref eq "REF"
by Jasper (Chaplain) on Oct 19, 2004 at 09:12 UTC
    So it would seem. I was just thinking that the reference is a reference, a SCALAR is something different would seem to be the easier. As you say, Data::Dumper would have lived just fine (better, even). I should have looked at the source myself before writing that.