Getting CPAN module tarball from local MiniCPAN mirror
This blog post is just for sharing a simple script.
Like many Perl programmers, I have a mini CPAN mirror locally on my hard drive (I put mine in /cpan
). Aside from installing CPAN modules offline using cpanminus, I also sometimes want to peek into a dist's files (especially the contents of the t/
). So what's a quick way to get the path of a module's tarball, or to extract it?
Normally cpanminus can do this, via cpanm --mirror /cpan --mi…