Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: has it been blessed?

by dash2 (Hermit)
on Mar 06, 2002 at 16:17 UTC ( [id://149726]=note: print w/replies, xml ) Need Help??


in reply to has it been blessed?

To check if you are blessed into a particular class: if (ref ($obj) eq $classname)

To check if you are blessed at all... I think if (ref $obj and ref $obj ne 'ARRAY' and ref $obj ne 'HASH') # ... etc. would do it...

but if (UNIVERSAL::isa($obj, 'UNIVERSAL')) is probably better.

dave hj~

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-19 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found