metaperl has asked for the wisdom of the Perl Monks concerning the following question:
but where and how would I package up the 'BETA' and 'PROD' constants for re-use in child and parent classes?package X; use X::Child; my $object = X::Child->new(mode => BETA); my $object2 = X::Child->new(mode => PROD);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sharing constants between base and derived classes
by merlyn (Sage) on Apr 20, 2009 at 17:12 UTC |