So I simplified "finding" the files :-) (as you did in your first answer...and before I read the followup about needing a recursive find...and if a single level was adequate but you needed to filter directories, then a simple
grep could take care of that...and if you really wanted files with leading dots, then add a ".*" pattern to the
glob) You could use File::Find to push the files onto an array, then
splice off N files at a time and use
system to move the files.