File::Path  has a function called rmtree.

> -----Original Message-----
> From: loan tran [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 12:44 PM
> To: [EMAIL PROTECTED]
> Subject: empty a dir
> 
> 
> Is there a better way to do this in perl:
> 
> $reportdir = '/sybase/dba/scripts/dbuser_report';    
> `rm -r $reportdir/*`;
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.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