gogoglou has asked for the wisdom of the Perl Monks concerning the following question:
Dear Perl monks, I am using cgi to pass some parameters to another script (through a text box). although i've searched a bit for it, I couldn't find a solution to the following problem. I want to check if these values have been passed into a scalar. I am using an if statement and I was thinking something along the lines:
But this doesn't seem to work. does anyone have any suggestions? Thanks in advance for your helpif (defined($scalar)=true){ then .... elseif (defined($scalar)=false){ then... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: scalar values assignment
by moritz (Cardinal) on Apr 09, 2010 at 12:32 UTC | |
by sierpinski (Chaplain) on Apr 09, 2010 at 13:02 UTC | |
by gogoglou (Beadle) on Apr 09, 2010 at 13:00 UTC | |
by moritz (Cardinal) on Apr 09, 2010 at 13:12 UTC | |
by Anonymous Monk on Apr 09, 2010 at 13:10 UTC | |
|
Re: scalar values assignment
by AR (Friar) on Apr 09, 2010 at 13:55 UTC | |
|
Re: scalar values assignment
by nvivek (Vicar) on Apr 09, 2010 at 13:05 UTC | |
by almut (Canon) on Apr 09, 2010 at 13:19 UTC |