Talk About Network

Google


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 > Re: how to chec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 10974 of 11531
Post > Topic >>

Re: how to check null value

by igotux@[EMAIL PROTECTED] (Igotux Igotux) Apr 22, 2008 at 03:24 PM

------=_Part_4590_30846289.1208858056309
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

 perldoc -f defined should answer your question.

On Tue, Apr 22, 2008 at 1:39 PM, <Irfan.Sayed@[EMAIL PROTECTED]
> wrote:

> Hi All,
>
>
>
> How to find out whether the string contains null values or empty data.
>
>
>
> For example : I have one scalar variable $str and now I want to check
> whether it contains any data or not.
>
>
>
> What I did  : If ($str eq "NULL" || $str eq " "){ print $str conatins
> nothing\n";}
>
>
>
> Is this correct?? Because doing as per above code , I am not getting
> proper result.
>
>
>
> Please help
>
>
>
> Regards,
>
> Irfan
>
>
>
>

------=_Part_4590_30846289.1208858056309--
 




 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 Sat Jul 26 1:06:58 CDT 2008.