On Oct 29, 2014, at 3:12 PM, Mike Small <[email protected]> wrote:

> What about having a method that returns a reference to your map that you
> override in each of the derived classes?
> 
> e.g. ...
>       package PKG::_base;
>        sub _map { die; }
>       sub handle_ages { ; }
>       sub handle_dests { ...; somethin_somethin($self->_map()->{YYZ}) }
> 
>       package PKG::fr;
>        use base 'PKG::_base';
>       our %map;
>        sub _map { \%map }
>       sub handle_ages { ; }

Thanks, except I'm not in an object context.

Ricky


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to