今日覚えたPerlの一行野郎

  • インストールされてるCPANモジュールの一覧を出す
% perl -MExtUtils::Installed -e 'print "$_\n" for ExtUtils::Installed->new->modules' > modules.txt

cpanmに食わせてインストールできる

% cpanm < modules.txt
% perl -MEncode=encode_utf8 -E 'say encode_utf8("\x{3042}\x{3044}\x{3046}\x{3048}\x{304a}")'
あいうえお