Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > how to check nu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 10974 of 11065
Post > Topic >>

how to check null value

by Irfan.Sayed@[EMAIL PROTECTED] (Irfan Sayed) Apr 22, 2008 at 01:39 PM

------_=_NextPart_001_01C8A450.2B09AF70
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All,

=20

How to find out whether the string contains null values or empty data.

=20

For example : I have one scalar variable $str and now I want to check
whether it contains any data or not.

=20

What I did  : If ($str eq "NULL" || $str eq " "){ print $str conatins
nothing\n";}

=20

Is this correct?? Because doing as per above code , I am not getting
proper result.

=20

Please help

=20

Regards,

Irfan

=20


------_=_NextPart_001_01C8A450.2B09AF70--




 3 Posts in Topic:
how to check null value
Irfan.Sayed@[EMAIL PROTEC  2008-04-22 13:39:19 
Re: how to check null value
igotux@[EMAIL PROTECTED]   2008-04-22 15:24:16 
Re: how to check null value
njus@[EMAIL PROTECTED] (  2008-04-22 12:02:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 21:35:46 CDT 2008.