2011年5月19日木曜日

Perlモジュールのバージョン確認方法

インストールされているPerlモジュールのバージョンを確認するには、以下のようにすればよい。

[書式]

perl -Mモジュール名 -e 'print $モジュール名::VERSION'



[使用例]

[root@hostname ~]# perl -MFile::Spec -e 'print $File::Spec::VERSION'
3.12[root@hostname ~]#


[参考情報]

http://www.ksknet.net/perl/post_178.html