Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: How to dele...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 10983 of 11509
Post > Topic >>

Re: How to delete old directories with perl script?

by noreply@[EMAIL PROTECTED] (Gunnar Hjalmarsson) Apr 24, 2008 at 08:50 AM

Siegfried Heintze (Aditi) wrote:
> the following does not produce an error and does not work.
> 
> $ perl -MFile::Tasks -e
> '(File::Tasks->new)->remove_dir("2008-03-11_15-42-58/");

File::Path is probably a better choice than File::Tasks.

     perl -MFile::Path -e 'rmtree("2008-03-11_15-42-58")'

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 




 6 Posts in Topic:
How to delete old directories with perl script?
a-siehei@[EMAIL PROTECTED  2008-04-23 20:58:20 
Re: How to delete old directories with perl script?
jialinli1981@[EMAIL PROTE  2008-04-23 23:37:48 
Re: How to delete old directories with perl script?
chas.owens@[EMAIL PROTECT  2008-04-24 00:45:46 
Re: How to delete old directories with perl script?
chas.owens@[EMAIL PROTECT  2008-04-24 00:42:10 
Re: How to delete old directories with perl script?
noreply@[EMAIL PROTECTED]  2008-04-24 08:50:57 
Re: How to delete old directories with perl script?
rvtol+news@[EMAIL PROTECT  2008-04-24 18:17:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 21:09:15 CDT 2008.