in reply to Defining directory/Datas the perl script should work with
You should write a bash script if that's all you're doing. Perl will help if you're going to be getting a little more involved with data itself.