Then the solution might be to search around here (you can use Super Search) for discussions of the functions I used: opendir, readdir, rename, or the regular expression operations. Or look in the Perl built-in function documentation perlfunc. Or look in the Perl FAQ.