siddheshsawant has asked for the wisdom of the Perl Monks concerning the following question:
Hello every one !!!!
I was doing the following code
if defined param('end_date'){$user_input->{end_date} = param('end_date +')}; else $user_input->{end_date} = param('start_date');
And I was getting the compilation error as follows
yntax error at /var/www/cgi-bin/post.cgi line 21, near "if defined"
Execution of /var/www/cgi-bin/post.cgi aborted due to compilation errors.
can anybody give me correct syntax for it ???
Thanks in advance !!!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: syntax of defined
by moritz (Cardinal) on Mar 09, 2010 at 22:21 UTC | |
by ikegami (Patriarch) on Mar 09, 2010 at 23:00 UTC | |
|
Re: syntax of defined
by MidLifeXis (Monsignor) on Mar 10, 2010 at 15:25 UTC |