Xavier Noria wrote on 26.07.2005:

>On Jul 26, 2005, at 11:31, Jan Eden wrote:
>> But I wonder why my initial example works for you. File::Path doc  
>> says:
>>
>> 'The "mkpath" function provides a convenient way to create  
>> directories, even if your "mkdir" kernel call won't create more  
>> than one level of directory at a time. '
>>
>> But my system's mkdir does execute
>>
>> mkdir /some/dir/newsubdir
>>
>> while this does not work via Perl's mkdir function.
>>
>> Anyway, I will use File::Path.
>
>OK, would you please show us a test copying a shell session that  
>demonstrates the issue? That is, open a terminal, do some "ls"s,  
>"mkdir"s, perl one-liners, etc. Something we can reproduce in a Unix  
>machine.

Ahem. Very strange:

[jan:~/tmp] ls foo
bar
[jan:~/tmp] ls
foo
[jan:~/tmp] ls foo
bar
[jan:~/tmp] mkdir foo/bar/subdir
[jan:~/tmp] ls foo/bar/
subdir
[jan:~/tmp] rmdir foo/bar/subdir/
[jan:~/tmp] perl -e 'mkdir "foo/bar/subdir";'
[jan:~/tmp] ls foo/bar/
subdir

Now it works! I have no clue what went wrong, but I will investigate.

Thanks,

Jan
-- 
Lead me not into temptation. I can find it myself. - Jeffrey Kaplan

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to