Re: [question] array

2012-03-30 Thread Dr.Ruud
On 2012-03-30 12:33, Eko Budiharto wrote: I would like to ask about 2 dimensional array Each element of a Perl array is a scalar. my @colors = ( "red", "white", "blue" ); which can also be written as: my @colors = qw( red white blue ); and can be used as: print "ok" if $colors[ 2

RE: [question] array

2012-03-30 Thread Ken Slater
> -Original Message- > From: Eko Budiharto [mailto:eko.budiha...@gmail.com] > Sent: Friday, March 30, 2012 6:33 AM > To: beginners@perl.org > Subject: [question] array > > hi list, > I would like to ask about 2 dimensional array > > my code: > my $ref = $sth->fetchall_arrayref(); > foreac

RE: Question: Array of Hashes

2005-03-31 Thread Olivier, Wim W
Thanks Offer! It's working! Wim -Original Message- From: Offer Kaye [mailto:[EMAIL PROTECTED] Sent: 31 March 2005 02:55 PM To: Perl Beginners Subject: Re: Question: Array of Hashes On Thu, 31 Mar 2005 14:40:47 +0200, Olivier, Wim W wrote: > Hi all, > > I have the

Re: Question: Array of Hashes

2005-03-31 Thread Offer Kaye
On Thu, 31 Mar 2005 14:40:47 +0200, Olivier, Wim W wrote: > Hi all, > > I have the following code below which I need to modify a bit. > > The script currently lists the key/value pairs for all processes in the > system. > What I need to achieve is for it to only list the key/value pairs for > pro