Hi All,
I just wonder why the if condition is always true regardless of the value of the array
AB.
@AB = [1,2], and $i gets printed even for values not inlcuded in array AB.
foreach $i ( 0 .. $#{ $testsec{'AB'} } ) {
if ($testsec{'AB'}[$i] = "6543"){ # always true!!!!
print "$i\n";
}
else { last ;}
print " $testsec{'AB'}[$i]\n";
}
}
I appreciate if someone can help.
I.S
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/