Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^7: perl inheritance

by tangent (Vicar)
on Mar 29, 2012 at 16:11 UTC ( #962436=note: print w/replies, xml ) Need Help??


in reply to Re^6: perl inheritance
in thread perl inheritance

Yes, reftype() returns the type of the variable. I think what was meant was blessed() which returns the name of the package that it is blessed into:
my $class = blessed $self;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962436]
help
Chatterbox?
[choroba]: Syntax::Construct version 1.005 released to CPAN. The main change: 5.28 support.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2018-06-25 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?