Does sct_1.61 exist? If not,
create it first before making the subdirectory beneath
it.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ella Cai
Sent: Monday, November 15, 2004 7:22 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [Perl-unix-users] mkdir questions on unix platform
My codes is like this:
**********************************************************************
my $new_data_dir = "/var/tmp/sct_1.61/data";
mkdir ($new_data_dir, 0744) unless (-d $new_data_dir);
**********************************************************************
/var/tmp exists, but /sct_1.61/data does not exist under /var/tmp. It looks
like mkdir function does not work well. It does not create /sct_1.61/data. Could
you please let me know why? and how to solve it?
Thanks
Lixin
__________________________________________________
Do You Yahoo!?
Tired
of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs