Re: how to check null value

2008-04-22 Thread Lars Haugseth
* [EMAIL PROTECTED] wrote: > > 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 > noth

Re: how to check null value

2008-04-22 Thread igotux igotux
perldoc -f defined should answer your question. On Tue, Apr 22, 2008 at 1:39 PM, <[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

how to check null value

2008-04-22 Thread Irfan.Sayed
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 correc