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

What about something like this:
#!/usr/bin/perl use strict; use warnings; use File::Path qw(remove_tree); remove_tree('dir');