Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Remove bless reference or class/package name from method arguments

by binf-jw (Monk)
on May 20, 2009 at 10:43 UTC ( [id://765179]=note: print w/replies, xml ) Need Help??


in reply to Re: Remove bless reference or class/package name from method arguments
in thread Remove bless reference or class/package name from method arguments

That did cross my mind thanks.
Would you need to implement a custom isa method that searches @ISA?
Or is there a built in? can't find anything on perldoc.
John,
  • Comment on Re^2: Remove bless reference or class/package name from method arguments

Replies are listed 'Best First'.
Re^3: Remove bless reference or class/package name from method arguments
by moritz (Cardinal) on May 20, 2009 at 10:51 UTC
    The isa method is already there, provided by the UNIVERSAL class, and can be called without any further ado:
    $ perl -wle 'print +(bless {})->isa("main")' 1

Log In?
Username:
Password:

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

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

    No recent polls found