array match- help !

2012-08-17 Thread jet speed
Hi All, I have the below program. i can match the entries in actzone.txt file in bluealias.txt and print it. what i would like to achive is to print the alias name and the reated wwn for each zone that matched in 2 formats in different file ex. as below. Please could you help me achieve this. o

Re: array match- help !

2012-08-17 Thread jet speed
Hi Shomi, Appreciate your comments.Thanks I find it difficult to understand, if i convert into has. i.e keys and corresponding values. if my keys are from @actzone and values are from @all. How can i do this, becuase there are 2 keys and values are multiple ex. alias: wwn: etc. how can i match

Re: array match- help !

2012-08-17 Thread Shlomi Fish
Hi jet speed, I apologise for sending my reply to you in private instead of to the list. It was an accident. On Fri, 17 Aug 2012 15:10:03 +0100 jet speed wrote: > Hi Shomi, > It's "Shlomi". > Appreciate your comments.Thanks > You're welcome. > I find it difficult to understand, if i conv

Re: array match- help !

2012-08-17 Thread Paul Anderson
Isn't this basically the format of YAML? Couldn't a YAML CPAN module handle this data? On 2012-08-17, at 10:10 AM, jet speed wrote: > Hi Shomi, > > Appreciate your comments.Thanks > > I find it difficult to understand, if i convert into has. i.e keys and > corresponding values. if my keys

Re: array match- help !

2012-08-17 Thread Shawn H Corey
On Fri, 17 Aug 2012 15:10:03 +0100 jet speed wrote: > > Your code is lacking indentation. Perhaps you should consider using Perl::Tidy to automatically format your code. http://search.cpan.org/~shancock/Perl-Tidy-20120714/lib/Perl/Tidy.pm -- Just my 0.0002 million dollars worth, Shawn

Re: array match- help !

2012-08-17 Thread jet speed
Chaps, Thanks for all your comments, I am strill trying to resolve my inital query. Any help would be much appreciated. I have the below program. i can match the entries in actzone.txt file in bluealias.txt and print it. what i would like to achive is to print the alias name and the reated wwn

Re: array match- help !

2012-08-17 Thread Bill Stephenson
On Aug 17, 2012, at 10:07 AM, jet speed wrote: > Chaps, > > Thanks for all your comments, I am strill trying to resolve my inital > query. Any help would be much appreciated. > > > I have the below program. i can match the entries in actzone.txt file in > bluealias.txt and print it. > > what i