|Keep It Simple, Stupid|
Collapsing a list of files...by fiddler42 (Beadle)
|on Sep 16, 2009 at 22:18 UTC||Need Help??|
fiddler42 has asked for the
wisdom of the Perl Monks concerning the following question:
I have a list of c. 5,000 files that I need to collapse into the smallest possible list of files with wildcards. For example, say I have some files named:-
...and I need to reduce them to:-
Any suggestions on how to do this as efficiently as possible in perl? The routine will start off by just reading in the contents of a user-specified unix directory. The names will be very similar to what's referenced above.