[Perl-unix-users] Re: Help with arrays and arrayref (Marcos Legido)

2005-04-19 Thread Marcos Legido
Hi: If you want to check the values in arrayref using foreach, you write something like this: foreach $row (@{$arrayref}) { etc... To dereference $arrayref. Bye. > >Hi, > >I am using fetchall_arrayref to fetch multiple rows from the SQL result >set after executing it. Then I was trying to see

Re: [Perl-unix-users] Help with arrays and arrayref

2005-04-19 Thread Olivier Renard
Hi, to access an element of an refenreced array, you should write $array_ref->[1] for the 2nd elements of the array see perlref Olivier Renard Mediterranean Network Developper Mail: [EMAIL PROTECTED] Tel: (+377) 97-77-60-16 AITHA, BHEEMSEN (SBCSI) wrote: Hi, I am using fetchall_arrayref to fetch

[Perl-unix-users] Help with arrays and arrayref

2005-04-19 Thread AITHA, BHEEMSEN \(SBCSI\)
Hi, I am using fetchall_arrayref to fetch multiple rows from the SQL result set after executing it. Then I was trying to see the values obtained, but I get the following. ARRAY(0x203dfe4c) ARRAY(0x2085df00) ARRAY(0x2085df24) ARRAY(0x203dfe4c) ARRAY(0x2085df00) ARRAY(0x2085df24) I was expecting t