RE: array of hashes looping prob

2004-10-04 Thread Graeme McLaren
Ok everyone I got it: for my $a (@result){ for my $h (keys %$a){ print $h = $a-{$h} BRBRBR; } } Cheers, G :) From: Graeme McLaren [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: array of hashes looping prob Date: Mon, 04 Oct 2004 10:27:37 +0100 MIME-Version: 1.0 X-Originating-IP:

RE: array of hashes looping prob

2004-10-04 Thread Charles K. Clarkson
From: Graeme McLaren mailto:[EMAIL PROTECTED] wrote: : Ok everyone I got it: : : for my $a (@result){ : : for my $h (keys %$a){ : : print $h = $a-{$h} BRBRBR; : } : } Avoid using $a and $b as variables. They are used by 'sort' and treated special by perl. Use descriptive