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
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
-
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
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
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