Rob Kinyon wrote:
> Personally, I'd add a few changes:
>
> 1) Create a param(), not a direct object access. So, instead of
> $self->{logger}, I'd use $self->param( 'logger' );
> 2) Create a logger() method that looks like:
> sub logger { $_[0]->param( 'logger' ) }
>
> So, now you have
>
> $self->logger->error( "Uh-oh" );
>
> The overhead is very small compared with the maintenance gains.
Always hoping to gain more knowledge, what are the maintenance gains here?
--[Lance]
--
Carolina Spirit Quest http://www.carolinaspiritquest.org/
Celebrate The Circle http://www.celebratethecircle.org/
My LiveJournal http://www.livejournal.com/users/labrown/
GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
CACert.org Assurer
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx
|