in reply to Re^2: Create file in a specified directory
in thread Create file in a specified directory

use -d (perldoc -f -X) to check for exsistence.. for making a directory there's perldoc -f mkdir, and for making it recursively there's mkpath in File::Path