Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Sort files into date-labeled subfolders using Perl' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sort files into date-labeled subfolders using Perl
Authored by: merlyn on Feb 25, '08 12:22:38PM

I avoided the bizarre "_" mostly because it isn't really saving that much time on this one-off script. It's also one of the few things I invented for Perl, so I can avoid it when I want. :)

Also, the biggest risk of loss is that you might rename a file onto the same name in the subdir, losing one of the two files in the process, since it's perfectly legal to rename(2) to an existing name. I didn't check for that, but it would take only one more statement.



[ Reply to This | # ]