in reply to
Perl Script to create sample files in each directories created.
Hi, it is good that you post the code your have tried, but you did not state what your problem is, nor asked any question.
There are a few problems in your code (some already reported in previous posts), but you'll most probably find out by yourself (at least for the most severe ones) if you try to compile it and run it.
One additional comment: you probably don't want to use function prototypes unless you clearly know why and really understand what they are doing. Don't do it if you don't know, not using them will not bite you.