in reply to constant variable using scaler variable

The following code will print 'abc'.
use constant A1 => "abc"; my $var = A1; # remove double quotes print $var;
Please go through constant for more information.

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