To build a directory, use mkdir

<http://www.perldoc.com/perl5.6/pod/func/mkdir.html>

To check if a directory exists or not:

if (-e $dirname) {
  print "$dirname exists";
} else {
  print "$dirname does not exist";
}

I hope that helps.

Ahmed
                

Nafiseh Saberi wrote:

> hi all...
> would  you  know any info for 
> build directory in specific path in middle
> 
> of source code of perl??
> 
> I need the syntax ,that open dir and if it isn't exist...
> 
> build that.
> 
> thx.
> 
> 
> 
> ____________________________
> 
>                 Nafiseh Saberi   
> ____________________________


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to