--- "Gross, Stephan" <[EMAIL PROTECTED]> 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
>     abc
>  
> Why the difference?

Because the quotes "stringify" the scalar in $TextField so that it's
not a reference any more.

Try:

    print $TextField->Text;

without the quotes. If you want it in the middle of other stuff, use

     print "Other ",$TextField->Text," stuff\n";

or 

     print "Other " . $TextField->Text . " stuff\n";



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to