Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Stuck with hw

by glivings (Scribe)
on Apr 02, 2003 at 20:33 UTC ( [id://247593]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (sort { $player{$b}[1]*1 + $player{$b}[3]*.5 <=> $player{$a}[1
    +]*1 + $player{$a}[3]*.5 } keys %player) {
        print $_ . " " . join(" ", @{$player{$_}}[1..3]) . "\n";
    }
    
  2. or download this
    this results in
    Kasparov 2 1 2
    ...
    Anand 1 2 0
    Shirov 1 1 0
    Karpov 1 0 0
    
  3. or download this
    $player{$1} = [ $1, $p1wins, $p1loss, $p1draw ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://247593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-19 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found