On 7/2/09 Thu Jul 2, 2009 12:12 PM, "daem0n...@yahoo.com"
scribbled:
>
> Hi,
>
> If I have a loop that for each run creates
>
> while (){
> my $value =~ /^\d/;
> $myhash{$mykey}->{'subkey'} = $value;
> }
>
>
> Normally, if I only want to sort $myhash through it's values, I would do
> s
Hi,
If I have a loop that for each run creates
while (){
my $value =~ /^\d/;
$myhash{$mykey}->{'subkey'} = $value;
}
Normally, if I only want to sort $myhash through it's values, I would do
something like:
foreach (sort { $a <=> $b } keys %myhash){
print "$myhash{$_}\n";
}
what if i