Aha, looking at
Test::Direcory, I would infer that the
remove_files() and
remove_directories() methods are used to remove files &/or directories from within the directory created by the constructor i.e. personally, I would expect the call
$dir->remove_directories($log_dir); to fail because
$log_dir is not a subdirectory of itself, the
clean() method takes no args and is/should be used to
rmdir the directory created by the constructor i.e.
$log_dir.
HTH ,
A user level that continues to overstate my experience :-))