Just a minor correction to your good and portable solution:
cmd.exe can handle commands starting with ".", but dot as the current directory needs to be followed by a backslash and the filename to run:
.\cpanm
The above launches cpanm.cmd (if it exists) from the current directory.
In reply to Re^2: Unable to use Module::Starter::AddModule under windows
by Corion
in thread Unable to use Module::Starter::AddModule under windows
by BillKSmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |