go ahead... be a heretic | |
PerlMonks |
How can I differentiate between 0 and whitespace in Perl?by boom (Scribe) |
on Apr 18, 2009 at 13:35 UTC ( [id://758466]=perlquestion: print w/replies, xml ) | Need Help?? |
boom has asked for the wisdom of the Perl Monks concerning the following question: I have the following piece of code in my program:
But whenever 0 is passed to $val, the if part executes instead of the elsif which I expect to get executed. How can I fix this?
Back to
Seekers of Perl Wisdom
|
|