Re: How to change the value of a Hash Key

2005-06-08 Thread John W. Krahn
Mallik wrote: Hi, Hello, I have a below hash (printed using Dumper). $VAR1 = { 'Technologies':'Optical':'Dense Wavelength Division Multiplexing (DWDM)' }; $VAR2 = { 'typeInfoSortKey' => '', 'mdfName' => 'Linear with Optical Add/Drop Multiplexing (OADM)

RE: How to change the value of a Hash Key

2005-06-08 Thread Thomas Bätzler
Hello Mallik, you asked: > I want to accomplish some thing like this... > > %hash = ( > "abc" => "mallik", > "xyz" => "arjun", > "mno" => "priya" > ); > > Need be changed to > > %hash = ( > "123" => "mallik", > "243" => "arjun", > "532" => "priya" > ); > > The key valu

Re: How to change the value of a Hash Key

2005-06-08 Thread FreeFall
be changed to > > %hash = ( > "123" => "mallik", > "243" => "arjun", > "532" => "priya" > ); > > The key value abc is changed to 123 and so on.. > > Hope my requirements are clear now. >

RE: How to change the value of a Hash Key

2005-06-08 Thread Mallik
m: Thomas Bätzler [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 11:50 AM To: 'beginners@perl.org' Cc: 'Mallik' Subject: RE: How to change the value of a Hash Key Mallik <[EMAIL PROTECTED]> asked: > I have a below hash (printed using Dumper). [...] > Her

RE: How to change the value of a Hash Key

2005-06-07 Thread Thomas Bätzler
Mallik <[EMAIL PROTECTED]> asked: > I have a below hash (printed using Dumper). [...] > Here, the key is 'Technologies':'Optical':'Dense Wavelength > Division Multiplexing (DWDM)'. > > Now, I want to replace it with something like 'abc'. > > Any pointers on this? Did you mean something like th