Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

(tye)Re: OO Perl: calling a constructor within a class

by tye (Sage)
on Sep 26, 2001 at 19:53 UTC ( [id://114841]=note: print w/replies, xml ) Need Help??


in reply to OO Perl: calling a constructor within a class

I don't think anyone bothered to simply answer your question (not a criticism of any of the fine replies, just a justification for this one):

sub another_constructor { my $class= shift; my $self= $class->new(); .... }

        - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found