I need to remove directories recursively. I was wondering if there is any perl function equivalent to unix function 'rm -r directory_name'. rmdir function removes a directory only when it is empty. If there anyway that I can force the directory and all contents in it to get deleted. I can have a loop running through the directories to remove each one of them, but that would be second option I will attempt only if there is no direct function or module equivalent to 'rm -r'.
Thanks.
Thanks.