It makes a difference in the following case:
Code:
my $q = new CGI;
if (defined $q->param('query')) {
...
}
or
Code:
my $q = new CGI;
if ($q->param('query')) {
...
}
If you enter
script.cgi?query=words, both cases will be true.
If you enter
script.cgi?query=, the first case will be true, whereas the second will not be true.
If you enter
script.cgi, none of them will be true.
Does that help?
Ivan
-----
Iyengar Yoga Resources /
GT Plugins