perl -V:.+|grep install # or for the grepless perl -V:.+|perl -ne" print if /install/ " #### perl -MConfig -MFile::Path -e" rmtree($Config{installprefix}) " #### perl -V:install.+