tokuhirom's blog

How can I install all favorited distributions from CPAN?

function metacpan-favorited() {
    curl -s  https://metacpan.org/author/TOKUHIROM | perl -ne 'if (m!class="release".*/release/([^"]+)!) { $_ = $1; s/-/::/g; print $_,$/ }'
}
 
function cpanm-metacpan-favorited {
    metacpan-favorited | cpanm -nv
}

inspired from : https://gist.github.com/4030168

Created: 2013-01-15T02:16:47Z
Updated: 2013-01-15T02:16:47Z
comments powered by Disqus