--- Paul <[EMAIL PROTECTED]> wrote:
>
> --- "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";
*sigh* -- sorry for the typo.
should be
print "foo" if $x = "6543";
> 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/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/