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);
In reply to sharing constants between base and derived classes by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |