Re: sorting anonymous arrays inside arrays

2009-07-02 Thread Jim Gibson
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

sorting anonymous arrays inside arrays

2009-07-02 Thread daem0nb0y
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