Jan Eden wrote on 26.07.2005:

>Hi,
>
>this does not work:
>
>mkdir "/some/dir/newsubdir" or die "$!";
>
>while this does:
>
>chdir "/some/dir"; mkdir "newsubdir/" or die "$!";
>
>In the shell, I can obviously execute the former.
>
>Is it true that in Perl, I can create a directory only within the
>current working directory?
>
>Thanks,
>
>Jan -- These are my principles and if you don't like them... well, I
>have others. - Groucho Marx
>

Apologies: Just found File::Path.

Thanks,

Jan
-- 
Unix is user friendly - it's just picky about it's friends.

--
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