Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Sorting an array or hashes

by Corion (Patriarch)
on Jan 23, 2012 at 08:57 UTC ( [id://949339]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ...
    <th class=graycenter>$sortedCollectionData[$i]{'CollectionId'}</th>
    ...
    
  2. or download this
    <th class=graycenter>$collectionData[$sortedCollectionData[$i]]{'Colle
    +ctionId'}</th>
    
  3. or download this
    my $orderby = 'collection';
    my @data = readCollectionData('dummyFilename.txt');
    ...
    print Dumper \@indices;
    
    printCollectionData(\@data, @indices);
    
  4. or download this
    ...
        if($sortedCollectionData[$i]{'Status'} eq "I") {
    ...
          $longStatus = "Submitted Complete";
        }
    ...
    
  5. or download this
    my %translateLongStatus = (
        'I'  => 'Incomplete',
    ...
        $longStatus = $translateLongStatus{ $collectionData[$i]{Status} } 
    +||'Submitted Complete';
    ...
    }
    
  6. or download this
    #!perl -w
    use strict;
    ...
    CollectionId=>25318 Framecount=>6 Status=>I Missing=>5 Modified=>01/22
    +/2012 22:13:37
    CollectionId=>21318 Framecount=>6 Status=>I Missing=>5 Modified=>01/22
    +/2012 22:13:43
    CollectionId=>21342 Framecount=>6 Status=>I Missing=>5 Modified=>01/22
    +/2012 22:13:56
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-16 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found