Eric Walker wrote:

How can I test for empty strings and nulls on a particular value.   When
I get an empty string or a null value I need to do something.

Thanks in Advance.

BassFool





# from a unix shell,
# empty string
perl -e '$s = "";unless ($s) {print "Empty string\n";}'
# null value
perl -e '$n = hex 0; unless ($n) {print "Null\n";}'




-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to