http://qs321.pair.com?node_id=497890


in reply to Object Constructors - Advice of experienced OO Perl Monks

The class constructor is used to initialize the object, safely and completely, and can also be used to instantiate any compound objects you need to couple in your object. Besides that, I don't see anything you can't do on a constructor.

Update: After seeing your update, the difference from perltoot and WWW::Mechanize::new was the way its doing things. There are not a default idiom to construct your objects. You can do the way you feel comfortable to.


Igor S. Lopes - izut
surrender to perl. your code, your rules.