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 reply to Re^3: Using a scalar as a constant?
by Corion
in thread Using a scalar as a constant?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |