Re: Looping through elements of an anonymous array

2002-05-10 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I have an unusual question: If I have an anonymous array stored in a > hash, is there a more graceful way of iterating through each item in > the anonymous array than using a counter? i.e., > > @all_records{q} = [1, 2, 3] This should be $all_r

Re: Looping through elements of an anonymous array

2002-05-10 Thread Felix Geerinckx
on Thu, 09 May 2002 17:18:26 GMT, [EMAIL PROTECTED] wrote: > I have an unusual question: If I have an anonymous array stored in > a hash, is there a more graceful way of iterating through each > item in the anonymous array than using a counter? i.e., > > @all_records{q} = [1, 2, 3] Note that th

Looping through elements of an anonymous array

2002-05-10 Thread eric-perl
Hello, All: I have an unusual question: If I have an anonymous array stored in a hash, is there a more graceful way of iterating through each item in the anonymous array than using a counter? i.e., @all_records{q} = [1, 2, 3] $j = 0; while ($all_records{q}->[$j]) { print $all_records{$