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