Keep It Simple, Stupid | |
PerlMonks |
Check on if statementby Anonymous Monk |
on Aug 17, 2002 at 16:52 UTC ( [id://190885]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi. I've got the following if statement: if($foo !~ /(|\?)/) It's not working the way I need it to, though. What I'm trying to do is basically get the system to check if $foo is either a 'blank' (empty) variable or if it's value is just a question mark ('?'). Now, how can I represent that empty/blank value in the above statement? Thanks, Ralph.
Back to
Seekers of Perl Wisdom
|
|