On Wednesday 02 May 2001 11:27 pm, Randall Perry wrote:
> I'm baffled by perl's scoping of variables. In the code below, the
> $cust_data hash ref is inited outside the while loop. It's then set in the
> while with the results of a PgSQL query.
>
> In the if-else statement $cust_data can be seen i
How can I test if two lists are equal?
Examples:
These two lists should be equal:
@List1a = (1, 2, 3);
@List1b = (1, 1+1, 1+1+1);
No pair of these should be equal:
@List2a = ("one", "two", "three");
@List2b = ("two", "one", "three");
@List2c = ("one", "two", "three", "four");
Is there an elegan
On Thu, May 03, 2001 at 06:28:31PM +0200, Detlef Lindenthal wrote:
> How can I test if two lists are equal?
>
> Examples:
> These two lists should be equal:
> @List1a = (1, 2, 3);
> @List1b = (1, 1+1, 1+1+1);
>
> No pair of these should be equal:
> @List2a = ("one", "two", "three");
> @List2b =