create a directory in perl

Hi Guys!!!!!!!!!!!!!!!!!!!!!

can we create or copy directories in perl without using system commands like "mkdir" and "cp"

script needed urgent !!!!!!!!!!!!!!!!!!!!!!!!!!!

cheers,
aajan

Perl has the mkdir function. Go to perldoc.perl.org and look for the mkdir function for details.

The Perl module File has File::Copy which copies files or filehandles. Go to cpan.org and search for File::Copy for details.

I have the script using these commands but i dont want to use any of the system commands..

is there any way to do it?

heers,
aajan

Not system commands.It is a function.See the below link
mkdir - perldoc.perl.org
and you can call it like using any other perl function

You seem to have ignored fpmurphy's post. Read it again.

That is fine.....
but is there any possibility to achive it without using any of the functions or modules?

Search Google. At this point, you have been given the answer to your question. If you are going to keep adding restrictions to it, you're on your own. You will find all the answers via Google, especially now that you have a better idea about what keywords to use.

ShawnMilo

Searching google is not going to help, the answer to your question is that it is impossible to make a directory without using some command to do it, regardless of what script or third party app you use.