in reply to How to automate construction of directories?
Getting Started With Perl in Tutorials might be a good place to start.
Update: fixed broken link, noticed by erix