Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: stringified references

by John M. Dlugosz (Monsignor)
on Dec 04, 2002 at 19:41 UTC ( [id://217575]=note: print w/replies, xml ) Need Help??


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);
    ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://217575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found