Oct 2, 2013, 11:06 AM
Use the output of the following codes below maybe you can see where the ERROR is. It's so obvious though.
Re: [perldeveloer] Why do I get a Warning of Unitialized Value?
my @new_file_face_ = (1..5);
for( my $i = 0; $i <= $#new_file_face_; $i = $i + 1 )
my $j1 = $new_file_face_[ $i ];
my $j2 = $new_file_face_[ $i+1 ];
#my $temp = $j2-$j1;
print '$i = ',$i,', $#new_file_face_ = ',$#new_file_face_,
', $j1 = ',$j1,', $j2 = ',$j2,$/
But in case you don't get it remove the = in the
so that it becomes and see what you get.
..;$i <= $#new_file_face_
(This post was edited by 2teez on Oct 2, 2013, 11:07 AM)