http://www.perlmonks.org?node_id=1173439


in reply to Re^2: cpanr - view cpan ratings from the command line ( ojo::g )
in thread cpanr - view cpan ratings from the command line

You probably realized already but itís to facilitate one-liners. And it actually led me to find what I believe to be a bug in the text handing of Mojo. In my view, all_text and text should find the alt info in images. In this case it would have shown the star ratings which would have been a nice DWIW. :P

perl -Mojo -E 'say $_->all_text, $/ for g("http://cpanratings.perl.org +/dist/" . +shift=~s/::/-/r)->dom->find(".review")->each' CGI perl -Mojo -E 'say $_->all_text, $/ for g("http://cpanratings.perl.org +/dist/" . +shift=~s/::/-/r)->dom->find(".review")->each' Mojolicious