* Brett W. McCoy ([EMAIL PROTECTED]) [27 Jun 2001 21:22]:
> On Wed, 27 Jun 2001, Gross, Stephan wrote:
> > I'm using Win32::GUI. I create a text field and call it $TextField. The
> > user inputs some text, say "abc".
> > If I say
> > print "$TextField->Text";
> > I get
> > Win32::GUI::Textfield=HASH(0x23762b0)->Text
> > If instead I say
> > $x = $TextField->Text;
> > print "$x";
> > I get
> Is Text a method for the $TextField object? You can't interpolate
> methods (functions) directly in a string like this. You need to
> capture the return value from the method first and then use that.
Or do:
print $TextField->Text; # (no "" marks)
Or do:
print "Hello, the result is ".$TextField->Text." today!\n";
# concatenation rather than interpolation
cheers,
--
iain. <http://eh.org/~koschei/>