P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi there, I've been working through Learning Perl and perldoc perltoot and I can't find an answer to my query. I have got a simple class with a simple 'new' constructor which sets up an anonymous hash and sets up some atrributes:
However, I have another constructor in my class which works in a different way and sets some of the attributes of the object before returning it. My question: within a class file, how should I call the basic constructor from within my more complex constructor? Thanks, fx In reply to OO Perl: calling a constructor within a class by fx
|
|