I'm sure you can come up with others that are more relevant to your needs. The point is to apply the test to $data, not to the widget.$data =~ /\S/ # must contain a non-whitespace character $data =~ /\w/ # must contain an alphanumeric character length( $data ) > $minlength # must be at least this long
In reply to Re: Tk::Text Validation
by graff
in thread Tk::Text Validation
by willyyam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |