CPANメモ

すっかり忘れていたので備忘録

基本
perl -MCPAN -e shell
ワンライナー
perl -MCPAN -e "コマンド"
設定確認
cpan> o conf
URL追加
cpan> o conf urllist push ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
設定保存
cpan> o conf commit
設定やりなおし
cpan> o conf で表示された Config.pm を削除
インストール
cpan> install (モジュール名)
強制インストール
cpan> force install (モジュール名)
CPANのURLリスト
http://www.cpan.org/SITES.html

Date::Simpleを入れるときは文字コードの問題でmake testが失敗しインストールできないので

# LANG=C perl -MCPAN -e "install Date::Simple"

でインストール。