It's nothing to do with your problem, but this is a bad idea:
rmdir ( "$_" ) or die ("Could not remove $_");
See What's wrong with always quoting "$vars"? for more details.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Deleting a Directory
by davorg
in thread Deleting a Directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |