in reply to Using a scalar as a constant?
wxTE_MULTILINE actually is a function which has some value, and that value seems to be not the string "wxTE_MULTILINE". So you can do it like this:
... my $style = wxTE_MULTILINE(); Wx::TextCtrl->new( $self, -1, "", [5, 10], [-1, -1], $style );
Update: Fixed a typo spotted by Fletch
In Section
Seekers of Perl Wisdom