On Fri, Nov 08, 2002 at 05:54:32PM +0000, Richard Clamp wrote: > On Fri, Nov 08, 2002 at 05:42:33PM +0000, Jasper McCrea wrote: > > Ifin they ain't too big, try > > > > "@array1" eq "@array2" > > @array1 = qw( foo bar ); > @array2 = qw( foob ar ); > > They're not big, but they are still wrong :)
~ 13:03:53$ perl -e '@array1 = qw( foo bar );@array2 = qw( foob ar );if ("@array1" eq "@array2"){print "equal\n"}else{print "not equal\n"}' not equal looks correct to me. *shrug* Could the other issue - the case where the arrays are different, but stringify the same - be resolved by also comparing @array1 == @array2 ? dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ "You're on dry land! Squeaky Whale can't save you now!" - Stephen Cole