in reply to Re^3: remove directory in perl
in thread remove directory in perl

-M is simpler.

The OP already asked this question here and here