The stupid question is the question not asked | |
PerlMonks |
Re: Re: Comparing arraysby Arien (Pilgrim) |
on Dec 24, 2002 at 09:32 UTC ( [id://222076]=note: print w/replies, xml ) | Need Help?? |
That doesn't necessarily work as intended if the values of one or more elements in either array contain the list separator $":
The updated code is still flawed, consider:
This second update still isn't the way to do it... I took out the local $" (which should be no problem as the value of $" shouldn't matter anyway). Consider:
Stringifying would only work if it is guaranteed that $" doesn't occur as a substring of one or more values of either array. — Arien
In Section
Seekers of Perl Wisdom
|
|