http://qs1969.pair.com?node_id=217575


in reply to stringified references

Using ref and getting something back that's not a built-in type would indicate that it's blessed.

Replies are listed 'Best First'.
Re^2: stringified references
by adrianh (Chancellor) on Dec 04, 2002 at 19:51 UTC
    my $foo = bless {}, 'ARRAY'; my $bar = []; print "ooops\n" if ref($foo) eq ref($bar);
    ;-)