Currently, my Perl output is hard-coded to dump into the following UNIX directory:
my $stat_dir = "/home/courses/".**NEED DIR VAR HERE**;
The filename is built as such:
$stat_file = $stat_dir . "/".$sess.substr($yr, 2, 2)."_COURSES.csv";
I need a similar approach to building UNIX directories, but need to check if they exist first before creating them.
BONUS EXTRA CREDIT WIN:
Auto-numbering (revisions) of the $stat_file so that when these files get pumped into the same directory, they do not overwrite or append to existing files in the directory. (I don't know if this question has been fielded yet on S.O. - sorry if its a re-post)