Re: [GENERAL] Perl Scope problem

2001-05-03 Thread Michelle Murrain
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

[MacPerl] Equality of 2 lists

2001-05-03 Thread Detlef Lindenthal
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

Re: [MacPerl] Equality of 2 lists

2001-05-03 Thread Ronald J Kimball
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 =