Using cpanm just to download tarballs
Inspired by a recent blog post on patching cpanminus, I decided to spend a few minutes patching cpanm for a small itch I have: sometimes I want to download distribution tarballs only without building/installing. This patch adds a --download command to do just that.
To try it out for yourself:
$ git clone git://github.com/sharyanto/cpanminus.git $ cd cpanminus $ script/build.PL $ perl Makefile.PL && make install $ cpanm --download CGI Data::FormValidator
Note to self: And maybe a --downloaddeps or something like that too, but I haven't needed that yet.