Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: stringified references

by John M. Dlugosz (Monsignor)
on Dec 04, 2002 at 19:41 UTC ( #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? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-08-12 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?