or download this
ExtUtils::Command - utilities to replace common UNIX commands in Makef
+iles etc.
The module is used to replace common UNIX commands. In all cases the f
+unctions work from @ARGV rather than taking arguments. This makes the
+m easier to deal with in Makefiles.
...
perl -MExtUtils::Command -e test_f file
perl -MExtUtils::Command -e test_d directory
perl -MExtUtils::Command -e chmod mode files...