nope that won't work. s/he wants recursive removal. not just files. check search.cpan.org for File::Path docs or perldoc File::Path
use rmtree. > -----Original Message----- > From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 12:54 PM > To: loan tran; [EMAIL PROTECTED] > Subject: RE: empty a dir > > > Try this: > > @files=glob("/sybase/dba/scripts/dbuser_report/*"); > unlink(@files); > > HTH, > > José. > > -----Original Message----- > From: loan tran [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 6: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] > > > > **** DISCLAIMER **** > > "This e-mail and any attachment thereto may contain > information which is confidential and/or protected by > intellectual property rights and are intended for the sole > use of the recipient(s) named above. > Any use of the information contained herein (including, but > not limited to, total or partial reproduction, communication > or distribution in any form) by other persons than the > designated recipient(s) is prohibited. > If you have received this e-mail in error, please notify the > sender either by telephone or by e-mail and delete the > material from any computer". > > Thank you for your cooperation. > > For further information about Proximus mobile phone services > please see our website at http://www.proximus.be or refer to > any Proximus agent. > > > -- > 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]