Re: Hash Sorting Problem

2008-02-25 Thread Chas. Owens
On Mon, Feb 25, 2008 at 4:32 AM, Anirban Adhikary <[EMAIL PROTECTED]> wrote: > Dear List > > I need to delete each element after every execution of the foreach loop and > I need to update & sorted the @arr1 after every execution of the foreach > loop. I have tried a lot but not able to do this

Re: Hash Sorting Problem

2008-02-25 Thread MK
On 02/25/2008 04:32:42 AM, Anirban Adhikary wrote: -> Dear List -> -> I need to delete each element after every execution of the foreach -> loop and -> I need to update & sorted the @arr1 after every execution of the -> foreach -> loop. I have tried a lot but not able to do this Pls -

Re: Hash Sorting Problem

2008-02-25 Thread Anirban Adhikary
Dear List I need to delete each element after every execution of the foreach loop and I need to update & sorted the @arr1 after every execution of the foreach loop. I have tried a lot but not able to do this Pls help... Thanks & Regards Anirban Adhikary On Mon, Feb 25, 2008

Re: Hash Sorting Problem

2008-02-25 Thread John W. Krahn
Anirban Adhikary wrote: Dear List Hello, I have written the following code . use Data::Dumper; %file = (14 => "GGG", 11 => "AAA", 101 => "EEE", 1 => "TTT"); print Dumper \%file; @arr1 = sort { $file{$b} cmp $file{$a} } keys %file; #the oldest ent

Hash Sorting Problem

2008-02-25 Thread Anirban Adhikary
Dear List I have written the following code . use Data::Dumper; %file = (14 => "GGG", 11 => "AAA", 101 => "EEE", 1 => "TTT"); print Dumper \%file; @arr1 = sort { $file{$b} cmp $file{$a} } keys %file; #the oldest entry lies at the top position print D