[EMAIL PROTECTED] wrote... > 1) invoke the parental setup() inside the child's > setup(), either using SUPER or just a > fully-qualifed method name (i.e. > $self->MyPackage::Session::setup();)
One problem with using the fully qualified name would be if you want to inject another layer between your application and MyPackage::Session. By just calling SUPER::setup (all the way up the chain), you ensure that you can just change "use MyPackage::Session" to "use MyDerivedPackage::Session", and everything (in theory) plays nice. Now if you are concerned with speed, then calling the fully qualified name may make sense. Although, to quote DJB (of qmail "fame"), you should "profile, not speculate". Brian --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
