Re: a program that looks up majority item
- From: Tad McClellan <tadmc@xxxxxxxxxxxxxx>
- Date: Tue, 17 May 2011 08:24:16 -0500
ela <ela@xxxxxxxxxx> wrote:
sub query
{
for(my $i=$#{$data{$_[0]}}; $i>=0; $i--)
{
foreach my $RANK (sort {$b <=> $a} keys %{$data{$_[0]}->[$i]})
{
return [$col[$i], $data{$_[0]}->[$i]->{$RANK}, $RANK], if $RANK >= $_[1]
}
}
['',[]]
}
Something horrible has happened to the formatting of your code...
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.liamg\100cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.
.
- References:
- a program that looks up majority item
- From: ela
- a program that looks up majority item
- Prev by Date: FAQ 7.8 How do I declare/create a structure?
- Next by Date: FAQ 8.12 How do I start a process in the background?
- Previous by thread: a program that looks up majority item
- Next by thread: Re: a program that looks up majority item
- Index(es):
Relevant Pages
|