in reply to Re^2: constant variable using scaler variable
in thread constant variable using scaler variable

Not working ...

Hmmm.... For me it does. For instance from the command line:

mucn13154:~ 1 501 $ perl -lwe 'use constant A1=>"abc"; my $var="A1"; p +rint(eval($var))' abc
This was tested using Perl 5.8.8 on Cygwin, and Perl 5.8.7 on Solaris. What response do you get if you use my example?

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.