good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: scalar values assignmentby nvivek (Vicar) |
on Apr 09, 2010 at 13:05 UTC ( [id://833787]=note: print w/replies, xml ) | Need Help?? |
If you want to check whether that particular scalar is defined or not.You can simply use it in the if statement as follows.
If you want to check if it is undef,then you can use unless or simple else for the above if statement. For inverse of if,you can also use unless.
In Section
Seekers of Perl Wisdom
|
|