--- "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/
- Hash of arrays F.H
- Re: Hash of arrays Paul
- Re: Hash of arrays Paul
- Fork (not the kind you eat with) Pierre Smolarek
- Re: Fork (not the kind you eat with) Chas Owens
- Re: Fork (not the kind you eat with) Pierre Smolarek
- Re: Fork (not the kind you eat with) Pierre Smolarek
- Re: Fork (not the kind you eat with... Chas Owens
- Re: Fork (not the kind you eat with) Peter Scott
- Re: Hash of arrays Brett W. McCoy
- RE: Hash of arrays mark crowe (JIC)
- Hash of arrays Diego Riaņo