in reply to File Copy with Array

Taking the wild-speculation ball and running with it, if matija's and dragonchild's intuitions are right, your next question will be "ok, now how do I make the path if it doesn't exist?" As a pre-emptive strike, I offer up File::Path with its handy mkpath function. This will recursively create any parent paths necessary to get the one you want.