Deleting a directory

They have: 850 posts

Joined: Jul 1999

What is the best way to go around deleting a directory (and the files in that directory) ?

rmdir will only work if there is nothing in the file from what I understand. There must be other posibilities?

Thanks

------------------
Too many people on the internet lie.

They have: 568 posts

Joined: Nov 1999

rmdir -r

i think thats it

They have: 161 posts

Joined: Dec 1999

code:

use File::Path 'rmtree';
rmtree $path;
# or rmtree [ $path1, $path2 ]
[/code]

perldoc File::Path

------------------
-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve 

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.