|The stupid question is the question not asked|
Re: Palindrome arrayby LanX (Canon)
|on Dec 29, 2012 at 06:13 UTC||Need Help??|
The ugly truth is both don't work!
eq forces scalar context and is meant to compare strings
So in the first code you are checking if the sizes (after stringification) are equal.
in the second you have scalar from reverse on RHS
please stop doing weird things!
you can try the (less weird) smart match operator ~~ to compare arrays.
a poor man's solution with eq is to explicitly stringify on both sides.
But this depends on the nature of your array elements, don't be too surprised about: