looping over arrayref of hashes

2008-06-18 Thread Graeme McLaren
Hi all, I'm in need of a loop, can't seem to find what I'm looking for online. I want to loop over this array ref inserting each hash value into the DB at each iteration.I've got the following data structure which is assigned to $aref: $VAR1 = [ {'rate' => '1.98',

Re: looping over arrayref of hashes

2008-06-18 Thread Rodrick Brown
On Wed, Jun 18, 2008 at 12:27 PM, Graeme McLaren < [EMAIL PROTECTED]> wrote: > > Hi all, I'm in need of a loop, can't seem to find what I'm looking for > online. I want to loop over this array ref inserting each hash value into > the DB at each iteration.I've got the following data structure whic

Re: looping over arrayref of hashes

2008-06-18 Thread Gunnar Hjalmarsson
Graeme McLaren wrote: Hi all, I'm in need of a loop, can't seem to find what I'm looking for online. I want to loop over this array ref inserting each hash value into the DB at each iteration.I've got the following data structure which is assigned to $aref: $VAR1 = [ {

Re: looping over arrayref of hashes

2008-06-18 Thread Amit Saxena
Hi On the basis of what you have mentioned, I have made a sample code. Let me know if my understanding is different from yours. The Perl Code is copied below :- # cat u.pl #!/usr/bin/perl ##!/u01/app/oracle/product/10.1.0/db_1/perl/bin/perl # # Hi all, I'm in need of a loop, can't seem to fin

Re: looping over arrayref of hashes

2008-06-19 Thread Narthring
On Jun 18, 11:27 am, [EMAIL PROTECTED] (Graeme McLaren) wrote: > Hi all, I'm in need of a loop, can't seem to find what I'm looking for > online.  I want to loop over this array ref inserting each hash value into > the DB at each iteration.I've got the following data structure which is > assigne

Re: looping over arrayref of hashes

2008-06-20 Thread Rob Dixon
Graeme McLaren wrote: > Hi all, I'm in need of a loop, can't seem to find what I'm looking for > online. I want to loop over this array ref inserting each hash value into > the DB at each iteration.I've got the following data structure which is > assigned to $aref: > > my $VAR1 = [ > { >