in reply to Re: Removing directories with rmdir!
in thread Removing directories with rmdir!

No, I read on it, the directory(ies) is/ are not empty.

Replies are listed 'Best First'.
Re^3: Removing directories with rmdir!
by ikegami (Patriarch) on Jan 05, 2012 at 21:01 UTC
Re^3: Removing directories with rmdir!
by Anonymous Monk on Jan 06, 2012 at 02:47 UTC
    What about something like this:
    #!/usr/bin/perl use strict; use warnings; use File::Path qw(remove_tree); remove_tree('dir');