hi, all

is there any way to import constants from other modules without
specifying scope everytime?
such like this:

module A;
use constant { PI => 3.14, VER => 1.1 }
...

####

module B;
my $var = A::PI; # this way is fine when A is 'short' or rare

#### imagination

module C;
use constant tag { PI => 3.14, VER => 1.1 }
...

####

module D;
use constant C::tag;
my $var = PI; # forgive my laziness

is it a good idea to have header files and include pragma?
(sometimes, a big module file is also a headache. having this
feature, we could split it up.)

song10


_______________________________________________________________________
Yahoo!奇摩電子信箱
免費容量250MB,信件在多也不怕
http://tw.promo.yahoo.com/mail_new/index.html

Reply via email to