develooper Front page | perl.beginners | Postings from March 2002

"Use of uninitialized value" error message

Thread Next
From:
Ho, Tony
Date:
March 13, 2002 07:24
Subject:
"Use of uninitialized value" error message
Message ID:
17BB19F31428D411B3CC0090279A312802C98715@lon-exch2.kenan.com
Hi guys
I was wondering if you could help me with the following problem.
 
I am getting the following error message:
 
Use of uninitialized value in string ne at format_imsi_msisdn.pl line 257.

line 257 and beyond consist of the following:
 
if ($result_value1 ne " ") {
          $a= substr($result_value1, 0, 8);
          $b= substr($result_value1, 8, 2);
          $c= substr($result_value1, 10, 2);
          return ($a, $b, $c);
}
else {
          return (" ", " ", " ");
}
 
I declare the variable result_value1 at the begining of the method as
follows
 
my $result_value1 =" ";
 
Any ideas why ?
 
Thanks in advance
Tony
 
 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About