The problem is that Foo::Base is not importing the constant subs from Foo::Constants. You can say
listing each constant function you want to import, or dress up Foo::Constants with Exporter to define exports and tags for them.package Foo::Base; use Foo::Constants qw/PI FOO QUUX/;
After Compline,
Zaxo
In reply to Re: Any way to inherit constants?
by Zaxo
in thread Any way to inherit constants?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |