Untitled

Anonymous
plain_text
03/03/2022 12:30 PM
256 B
17
Indexable
my %hash = ("A"=>1,"B"=>2,"C"=>3,"D"=>4,"E"=>5,"F"=>6);

foreach $key (sort keys %hash){
    $hash{$key} = $hash{$key}**2;
}

foreach $key (sort keys %hash){
    print"\n$key=", $hash{$key};
}
Editor is loading...