Search Result

Collapse
2 results in 0.0039 seconds.
Keywords
Members
Tags
null stringperl
  •  

  • happyse27
    started a topic how to compare null string
    in Perl

    how to compare null string

    Hi all,

    I did the null string comparison for below...

    But could not work as i keyed some value into the $company field but it did not print out okok, but not ok. I used if ($company != '') also did not help...

    Can you kindly advise?


    Cheers...
    Andrew

    Code:
    if ($company != "" )
    {
    
      print "okok \n";
    }
    ...
    See more | Go to post

  • Shrutisinha
    started a topic comparing string with null in perl
    in Perl

    comparing string with null in perl

    if (int(substr($re cord,1,8)) > int(0)||
    (substr($record ,11,16))> int(0))
    {
    if (int(substr($re cord,1,9)) >= int(100000000)) {
    $Ban = trim(substr($re cord,1,9));
    }

    if ((substr($recor d,48,8)) ne null) {

    $prd_typ = trim(substr($re cord,48,8));

    }

    this don't work as it doesn't recognise the null value, somebody please...
    See more | Go to post
Working...