use File::Path;
mkpath("/storage/systbl/", 0, 0777) || die "$!\n";

....in accordance with the prophecy.

> -----Original Message-----
> From: loan tran [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 5:26 PM
> To: [EMAIL PROTECTED]
> Subject: how to check if a dir exists if not create it?
> 
> 
> mkdir ("/storage/systbl/") || die "$!\n";
> 
> The code above does not check if the dir exist.
> Can you modify it please. Thanks.
> 
> Loan
> 
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


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

Reply via email to