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"
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