Skip Menu |

This queue is for tickets about the List-MoreUtils CPAN distribution.

Report information
The Basics
Id: 29886
Status: rejected
Priority: 0/
Queue: List-MoreUtils

People
Owner: Nobody in particular
Requestors: ilmari+cpan [...] ilmari.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: wish: array_eq
I find myself wanting to compare arrays quite a bit, how about adding something like this? sub array_eq (@@) { all { $_ } pairwise { defined $a && defined $b && $a eq $b } }
Subject: wish: array_eq
I find myself wanting to compare arrays quite a bit, how about adding something like this? sub array_eq (@@) { my ($a, $b) = @_; all { $_ } pairwise { defined $a && defined $b && $a eq $b } }
On Wed Oct 10 05:53:32 2007, ilmari wrote: Show quoted text
> I find myself wanting to compare arrays quite a bit, how about adding > something like this? > > sub array_eq (@@) { > all { $_ } pairwise { defined $a && defined $b && $a eq $b } > }
Argh, I accidentially hit tab and space and submitted prematurely. Anyways, you get the idea.
Subject: Dupe deleted (wish: array_eq)
Sorry for the duplicate report. Deleting.
I think this is superseded by smart matching in perl-5.10.
From my perspective listcmp answers the question and lets you as requestion figure out which parts of the list are equal and which not. Please reopen, when you're requirements are not fulfilled.