Bob Showalter wrote:
> use Foo::Bar::Constants ();
> { package X; Foo::Bar::Constants->import }
> print $X::alice->{name}; # prints "Alice"
>
> Here your using the Exporter functionality, but exporting symbols into the
> "X" namespace instead of your current namespace. The empty parens on the
> "use" prevents the symbol imports into package main. (An alternative is to
> use @EXPORT_OK in the module and then just pass the @EXPORT_OK list to the
> call to import().)
nice trick :-) but the resulting code seems complex to me. 'use
constant' is actually what i'm looking for, i think. thanks though.
--
dave
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]