returns 1 if the form is submitted, because param('NOTES') returns at least an empty string, which is defined.
You should probably do
if (defined(param('NOTES')) and param('NOTES') =~ m/\S/) {
In reply to Re: Simple CGI text editing
by Joost
in thread Simple CGI text editing
by tcf03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |