in reply to Any way to inherit constants?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Any way to inherit constants?
by Anonymous Monk on May 15, 2005 at 05:29 UTC | |
by thcsoft (Monk) on May 15, 2005 at 12:33 UTC |