i have several "constants" in a package:

   package Foo::Bar::Constants;
   $alice = {name=>"Alice", low=>-10, high=>21};
   $bruce = {name=>"Bruce Wayne", low=>-17, high=>5};
   $charlie = {name=>"Charlie", low=>-3, high=>3};
   $devon = {name=>"Devon E.", low=>1, high=>29};

and i want to use them in another package:

   package main;
   require Foo::Bar::Constants;
   use Foo::Bar::Functions;

   add_foo(\@a1, $Foo::Bar::Constants::alice, 1, 3);
   add_foo(\@a1, $Foo::Bar::Constants::bruce, 2, -1);

is there a way to refer the constants by a shorter package name (say '
'$X::alice') without having to make the 'Foo::Bar::Constants' an
Exporter? i also prefer not to import '$alice' and the gang to 'main'
because there are lots of constants in 'Foo::Bar::Constants' and many of
them have pretty short and generic names.

thanks in advance.

--
dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to