--- "F.H" <[EMAIL PROTECTED]> wrote:
> I just wonder why the if condition is always true regardless of the
> value of the array AB.
>             if ($testsec{'AB'}[$i] = "6543"){ # always true!!!!

Because = is an assignment. =o)

 print "foo" if $x = "65343"; 

will always print, because = returns the 6543 assigned, which is true.

Try == instead. ;o]

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to