How to install cpanm using HTTP::Tiny and Perl oneliner?

Yuki Kimoto - SPVM Author - Dec 11 '22 - - Dev Community

How to install cpanm using HTTP::Tiny and Perl oneliner?

perl -MHTTP::Tiny -e 'print HTTP::Tiny->new->get("http://cpanmin.us/")->{content};' > cpanm
Enter fullscreen mode Exit fullscreen mode

Use cpanm in the portable way.

perl cpanm -h
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .