in reply to Sort files
Totally off topic here, but that question reminds me of an event in my life when I was about 8 years old. I had become very interested in electronics at that age and my father (who has been an elecronics hobbyist for 60+ years) gave me a television set and an old radio to tear apart.
Having torn them apart I surveyed the newley salvaged parts and decided to put some of them together and see what I could come up with. I had a power cord on one end and a bunch of parts hanging off of it and was all set to plug it in when I got a flash of wisdom and decided to run it by my dad before plugging it it.
I dropped the whole mess on his lap and asked him "will this work?" His very dry response was: "Depends on what your intent was son... if you are looking to test the fuses in the house fuse box to see if they will blow or not it will work welll."
So.. I guess the answer is: "It depends on what your intent was."
Having said that I'm looking at your code and I think to myself "good grief!"
I ran a modified version of it (only modifications were to provide some input to the array @files_Test_flat_file_write_over_name_only (Why such a long variable names?) and to add a print Data::Dumper(@sorted_files_Test_flat_file_write_over_name_only) so I could see the results. Looks to my eye that all is happening is the files are being sorted by name, which seems like a lot of trouble to go through for that.
What was your intent?
Just as a gentle admonition: A more descriptive title would help...
|
|---|