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;
In Section
Seekers of Perl Wisdom