Sure, you can use dzil install, which builds, tests, and installs the distribution. That's too slow though—by the time the normal CPAN shell has loaded its indexes, cpanm has often finished.
Sure, you have to manage your distro with dzil and you have to have cpanm configured to use the correct Perl and you can't have any other tarballs in your directory, but this works really well for me.
Why not just use the built in dzil install?
"dzil install" does have an "--install-command" option, which allows you to specify an alternative command to use for installation - "dzil install --install-command 'cpanm .'" would be pretty much equivalent to your alias.
I will now! I'd never thought to read the documentation for Dist::Zilla::App::Command::install.
This page contains a single entry by chromatic published on February 16, 2012 5:25 PM.
Experts versus Novices was the previous entry in this blog.
Upgrading User Password Hashes in Place is the next entry in this blog.