Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How to improve this data structure?

by davido (Cardinal)
on May 21, 2013 at 14:50 UTC ( [id://1034557]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @StatsArray;
    push @{$StatsArray[$RegionNum]}, {
      AR  => $AR[$RegionNum],
      BCR => $BCR[$RegionNum],
    };
    
  2. or download this
    my %Stats;
    push @{$Stats{$RegionNum}}, {
      ...
    };
    
  3. or download this
    my @sorted = sort { $a->{AR} <=> $b->{AR} } @{ $StatsArray[$RegionNum]
    + };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1034557]
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: (4)
As of 2024-03-28 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found