Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: sorting files

by toolic (Bishop)
on May 29, 2008 at 15:01 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found