RE: Passing multiple hashes into a sub-routine and returning them

2002-10-29 Thread Reddy Kankanala
when you loop thru keys, is there a way to get the corresponding value? -Original Message- From: Thomas Drugeon [mailto:tdrugeon;ina.fr] Sent: Tuesday, October 29, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: Re: Passing multiple hashes into a sub-routine and returning them hashes

RE: Passing multiple hashes into a sub-routine and returning them

2002-10-29 Thread Stovall, Adrian M.
29, 2002 11:04 AM To: Thomas Drugeon; [EMAIL PROTECTED] Subject: RE: Passing multiple hashes into a sub-routine and returning them when you loop thru keys, is there a way to get the corresponding value? -Original Message- From: Thomas Drugeon [mailto:tdrugeon;ina.fr] Sent

RE: Passing multiple hashes into a sub-routine and returning them

2002-10-29 Thread Serebnik, Kiril
Basically you may use something like this (note that this is old fashioned perl style - before references were invented) %a = (ak1 = av1, ak2 = av2); %b = (bk1 = bv1, bk2 = bv2); func (*a, *b); foreach $a (keys %a) { print $a = $a{$a}\n; } foreach $b (keys %b) { print $b =

RE: Passing multiple hashes into a sub-routine and returning them

2002-10-29 Thread Reddy Kankanala
Thanks Adrian! -Original Message- From: Stovall, Adrian M. [mailto:Adrian.Stovall;durez.com] Sent: Tuesday, October 29, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: RE: Passing multiple hashes into a sub-routine and returning them foreach $key (keys %hash) { print key: $key