Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Sorting Files with Numbers

by Wonko the sane (Deacon)
on Dec 30, 2002 at 16:11 UTC ( [id://223062]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $file (sort {$a <=> $b} keys %hash) {
     print "$key \n";
    }
    
  2. or download this
    perl -e 'print qq{[$_]\n} for ( sort { $a <=> $b } qw(file1 file10z fi
    +le11s file2q file20z file21f) )'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-19 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found