RE: [Perl-unix-users] Fwd: mkdir questions on unix platform

2004-11-15 Thread Thomas, Mark - BLS CTR
> Let me make question clear, in fact my question > is how can i create directories recursively. > > Do you have any example? Lixin, I would appreciate it if you (1) don't cross-post on multiple lists. (2) Don't ask the question again after it has already been answered correctly--it is rude to

[Perl-unix-users] Fwd: mkdir questions on unix platform

2004-11-15 Thread Ella Cai
Let me make question clear, in fact my question is how can i create directories recursively.   Do you have any example?   Thanks   LixinNote: forwarded message attached. Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com--- Begin Message --- My codes is like this: **

RE: [Perl-unix-users] mkdir questions on unix platform

2004-11-15 Thread Matt Schneider
Lixin,   Perl's mkdir function does not do parent directory creation like the shell command "mkdir -p somedir".  I wrote a little function to get around this.   # make a directory and it's parent if necessarysub mkdirp {    my $dir = shift;    my $check;       # if something with this path al

RE: [Perl-unix-users] mkdir questions on unix platform

2004-11-15 Thread Elston, Jeremy
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 CaiSent: Monday, November 15, 2004 7:22 AMTo: [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]Subject: [Perl-unix-users] mkdir questions on

[Perl-unix-users] Re: mkdir questions on unix platform

2004-11-15 Thread $Bill Luebkert
Ella Cai wrote: > 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); > ** > > /

Re: [Perl-unix-users] mkdir questions on unix platform

2004-11-15 Thread Gisle Aas
Ella Cai <[EMAIL PROTECTED]> writes: > 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); > *

[Perl-unix-users] mkdir questions on unix platform

2004-11-15 Thread Ella Cai
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/d