![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: comparsion of 2 arraysby blazar (Canon) |
on Jun 23, 2005 at 09:52 UTC ( #469337=note: print w/replies, xml ) | Need Help?? |
You may sort and then check if "@arr1" eq "@arr2", which is not bullet-proof, but could be suitable for your needs, especially if you set $" accordingly. This still involves more than one statement, well, unless you like a horrible hack like
Otherwise, whatever method you really use behind the scenes, who prevents you from wrapping it in a Compare() sub?
In Section
Seekers of Perl Wisdom
|
|