Hi
I am trying to Push one line at a time from three different arrays into a new array
Here is a part of the code that is giving trouble:
The code gets compiled with rest of the code and also gives me proper result But I am getting following (warning) message each time it loops through the while loop:
Use of uninitialized value in join or string at search_IP.plx (for the line with the Print statement)
I have initialized the array @result_line then why is it happening?
Please help.
Thanks
I am trying to Push one line at a time from three different arrays into a new array
Here is a part of the code that is giving trouble:
Code:
my @result_line;
while ($entries >= 0 ){
@result_line = ();
push @result_line, $result_line1[$entries];
push @result_line, $result_line2[$entries];
push @result_line, $result_line3[$entries];
print "@result_line\n";
$entries--;
}
The code gets compiled with rest of the code and also gives me proper result But I am getting following (warning) message each time it loops through the while loop:
Use of uninitialized value in join or string at search_IP.plx (for the line with the Print statement)
I have initialized the array @result_line then why is it happening?
Please help.
Thanks
Comment