DOHT! Ya that would do it wouldn't it.
Thanks.

-----Original Message-----
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 03, 2003 6:16 PM
To: Perl
Subject: Re: Sorting Hash of arrays by how many elements


From: "Paul Kraus" <[EMAIL PROTECTED]>

> This is straight from the camel pg 277.
> Unless I misunderstand this then the items with 3 elements should be 
> at the top not in the middle. What am I doing wrong?
> 
> Can someone break down what the sort statement in this situation is 
> doing. References are still confusing the hell out of me.
> 
> My code
> -------
> foreach (sort { @{$count{$b}}<=>{$count{$a}}}keys %count){
>       if ($#{$count{$_}}>1){
>  print "$_ = @{$count{$_}}\n";
>       }
>     }

If this is your real code you should reread it.
You are missing one @ there, but I wount tell you where ;-)

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to