http://www.perlmonks.org?node_id=963876


in reply to Re: new directory with sorted files
in thread new directory with sorted files

Same opinion, if you can, use bash for this. You can use perl of course, just remember that all files in your directory will be always sorted, so you don't need really to care about this. If you want to do this with perl take a look to mkdir and rename. If you use copy instead rename you'll need also to use unlink (that can be a little scary for a novice)