Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Conditional Sorting

by monkfan (Curate)
on May 11, 2007 at 05:06 UTC ( #614814=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @arr = ('foo','bar','qux','foo1','bar1','qux1');
    
    ...
              '1-3' => '0.300'
            };
    
  2. or download this
        'x-y' => 'VALUE'
    
    ...
         '0-3' => '0.300', means that
         'foo' and 'foo1' has value 0.300 OR
         'foo1' and 'foo' has value 0.300
    
  3. or download this
    
    foreach my $z (0 .. ($#arr-1)) {
    ...
    
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://614814]
Approved by Zaxo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2016-08-31 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.