Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Something like File::Find with sorting

by Kenosis (Priest)
on Feb 16, 2013 at 21:43 UTC ( #1019077=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @files = File::Find::Rule->file()->in($dir);
    
    print "$_\n" for sort { lc $a cmp lc $b } @files;
    
  2. or download this
    .project
    10B.xml
    ...
    atom.pdb
    Bio_SeqIO.pl
    ...
    
  3. or download this
    use strict;
    use warnings;
    ...
    my @files = File::Find::Rule->file()->in( $dir );
    
    print "$_\n" for nsort @files;
    
  4. or download this
    5a.xml
    6adh.pdb
    ...
    atom.pdb
    Bio_SeqIO.pl
    Book1.xls
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (21)
As of 2015-07-31 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls