willyyam has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to capture the contents of a Text field in a Tk window, and then do something only if the field had text in it. It would look like this:
I have not been able to find a condition that triggers - it seems like there is a single newline harvested from the text field, but testing for it isn't getting me anywhere. Pointers would be appreciated. Thanks.my $data = $text -> get('1.0','end'); if ($text actually_contains_text) { do some stuff } else { skip to the next step }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Tk::Text Validation
by graff (Chancellor) on Apr 21, 2005 at 01:58 UTC | |
by willyyam (Priest) on Apr 21, 2005 at 04:00 UTC | |
Re: Tk::Text Validation
by zentara (Archbishop) on Apr 21, 2005 at 11:30 UTC | |
Re: Tk::Text Validation
by eibwen (Friar) on Apr 21, 2005 at 00:57 UTC |
Back to
Seekers of Perl Wisdom