Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: isa() on any scalar

by mrborisguy (Hermit)
on Jun 13, 2005 at 03:18 UTC ( [id://466043]=note: print w/replies, xml ) Need Help??


in reply to Re: isa() on any scalar
in thread isa() on any scalar

After looking around, trying to figure out what I want to do, I decided to use the 'walk like a duck' approach and use can. However, the same problem occured! So I use this solution together with can. Thanks for this one!

use Scalar::Util qw(blessed); if ( blessed( $value ) and $value->can( 'parent' ) ) { # }

    -Bryan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-20 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found