Skip Menu |

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

Report information
The Basics
Id: 130389
Status: open
Priority: 0/
Queue: Scalar-List-Utils

Owner: Nobody in particular
Requestors: leonerd-cpan [...]

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

Subject: Function to compare two arrays for "equallity"
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-4523-1566891252-1959.0-0-0 [...]>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 542
Download (untitled) / with headers
text/plain 542b
I'm getting bored of writing @x == @y and all { $x[$_] == $y[$_] } 0 .. $#x or @x == @y and all { $x[$_] eq $y[$_] } 0 .. $#x I propose a new pair of functions that Return true if the two arrays whose references are given are the same length, and contain the same {numbers,strings}. I don't have a good name but maybe equalnum \@x, \@y equalstr \@x, \@y We should check CPAN for existing precedent first and see if there's a good name we can reïmplement. As a bonus feature, allow more than two arrayrefs. -- Paul Evans

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to