in reply to Creating files

Don't forget to check the return value of your open call. To wit:
open FILE, ">bob.txt" or die "Could not open file: $!\n";
$! is a special variable that returns the error. It'll tell you why you couldn't open the file.