in reply to Using Variables in Path Names

Lots and lots of very pertinent replies on the security problems relating to the task you have mentioned.

The only thing I haven't seen mentioned, which it looks like you need, is to check that the directory exists. Presumably your code is not just supposed to work for Laura, so unless you are anticipating all the required directory and subdirectory names, you will need to create them on the fly.

Small snippet:
print "Directory $dirname does".((-d $dirname)?" ":" not ")."exist.\n";

<a href="http://www.graq.co.uk">Graq</a>