Frank Wiles wrote:

>  .------[ [EMAIL PROTECTED] wrote (2002/09/24 at 10:38:59) ]------
>  | 
>  |  Hello, All:
>  |  
>  |  What's the simplest method to remove a directory *and* it's contents?
>  |  (rmdir only works on empty directories.)
>  |  
>  `-------------------------------------------------
> 
>     rm -rf but be careful, as you can easily blow away your system if
>     you do a rm -rf /
> 

or check out the File::Remove module which is OS independent:

#!/usr/bin/perl -w

use strict;
use File::Remove qw(remove);

#-- same as rm -fr director/*
remove \1, 'directory';

__END__

david

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

Reply via email to