Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by tye (Sage)
on Sep 26, 2001 at 19:53 UTC ( #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
Node Status?
node history
Node Type: note [id://114841]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-05-10 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (108 votes). Check out past polls.

    Notices?