Thank you very much.That did work. A prime example of how painful being
a newbie can be :)
Ahmer
-Original Message-
From: Amit Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 11:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Subroutine return values mixed.
HI ,
You need
HI ,
You need to declare @array "as my @array" after line 14 in subroutine.
13 sub color {
14 $map1 = shift;
#NEW LINE- my @array ;
15 foreach $item(keys %$map1)
16 { push @array, $item;}
17 return [EMAIL PROTECTED];
18}
Regards
---
Hi, I'm very new to Perl and am learning as I go along. I've been
reading a lot of articles and perl books to enhance my expertise. I'm
stuck on a problem where the content of the arrays returned back from a
common subroutine call are getting mixed up.
Here is the code.
--