http://qs321.pair.com?node_id=717219


in reply to Re^2: Using a scalar as a constant?
in thread Using a scalar as a constant?

Ah. If you have

my $style = 'wxTE_MULTILINE';

and want to get at the value returned by the constant/function wxTE_MULTILINE, then you have to use eval:

print $style; $style = eval $style; die $@ if $@; print $style;