Wed Oct 10 05:53:32 2007ilmari+cpan [...] ilmari.org - Ticket #29885: Ticket created
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 }
}
Wed Oct 10 05:56:57 2007ilmari+cpan [...] ilmari.org - Ticket created
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.
Wed Oct 10 05:58:51 2007ilmari+cpan [...] ilmari.org - Ticket #29885: Status changed from 'new' to 'open'
Wed Oct 10 06:09:53 2007ilmari+cpan [...] ilmari.org - Correspondence added
Fri Jul 14 13:06:56 2017The RT System itself - Status changed from 'new' to 'open'
Wed Aug 23 05:53:01 2017REHSACK [...] cpan.org - Correspondence added
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.
Wed Aug 23 05:53:01 2017REHSACK [...] cpan.org - Status changed from 'open' to 'rejected'