http://qs1969.pair.com?node_id=114769

fx has asked for the wisdom of the Perl Monks concerning the following question:

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:

$self->{NAME} = ''; $self->{USERNAME} = ''; ... etc ...

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