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

Re: sorting files

by toolic (Bishop)
on May 29, 2008 at 15:01 UTC ( #689033=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @TXT = glob("*.txt");
    @TXT = sort files_sort @TXT;
    print "$_\n" for @TXT;
    
  2. or download this
    % ls -1 *.txt
    A3_output_ZGZ22_03_20061022_duration_200mn_comptage_60.txt
    ...
    A3_output_ZGZ22_03_20061022_duration_200mn_comptage_60.txt
    M3_output_ZGZ22_12_20051022_duration_200mn_comptage_60.txt
    M3_output_ZGZ22_12_20061022_duration_200mn_comptage_60.txt
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2022-12-07 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?