in reply to Simple CGI text editing
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/) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple CGI text editing
by tcf03 (Deacon) on May 04, 2005 at 14:26 UTC |