Perlã¢ã¸ã¥ã¼ã«ã®ãã¼ã¸ã§ã³ã確èªããã¤ãã¤ããªæ¹æ³
å ãã¿
Googleå çã«å°ããã¨ãã2010å¹´ã®advent calendar㧠ã¢ã¸ã¥ã¼ã«ã®ãã¼ã¸ã§ã³ã確èªããã¨ãã©ããã£ã¦ã¾ããï¼ ã«ã¤ãã¤ãç´¹ä»ããã¦ãã¾ããã®ã§ãããã¤ãèªåã§è©¦ãã¦ã¿ã¾ããã
VERSIONå¤æ°ãprintãã
$ perl -MDBI -le 'print $DBI::VERSION' 1.625
ãã£ã¨ãã·ã³ãã«ãªæ¹æ³ã§ããããã
pmversã使ã
# pmvers DBI 1.625
cpanm pmversã§ã¤ã³ã¹ãã¼ã«ããã¨pmtoolsã¨ããã³ãã³ãéã®ãããªãã®ãå ¥ãã¾ãã pmversã³ãã³ã以å¤ã«ãä¾ãã°pmallã¨æã¤ã¨ãã¹ã¦ã®ã¤ã³ã¹ãã¼ã«æ¸ã¿ã¢ã¸ã¥ã¼ã«ããã¼ã¸ã§ã³ã¨å ±ã«è¡¨ç¤ºããã¾ãã
巨大ãªãã¼ã¸ã§ã³çªå·ã§useãã¦æå³çã«ã¨ã©ã¼ã表示ããã¦ç¢ºèªãã
# perl -e 'use DBI 9999' DBI version 9999 required--this is only version 1.625 at -e line 1. BEGIN failed--compilation aborted at -e line 1.
ã¨ã©ã¼ã¡ãã»ã¼ã¸ã®ä¸ã«ç¾å¨ã®ãã¼ã¸ã§ã³ãå«ã¾ãã¦ãããã¨ãå©ç¨ããæ¹æ³ã
Vã¢ã¸ã¥ã¼ã«ã使ã
# perl -MV=DBI DBI /usr/local/lib64/perl5/DBI.pm: 1.625
ãV.pmãã¯CPANããã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã
perldoc -m
# perldoc -m DBI
ããã«ã½ã¼ã¹ãåºãã¦$VERSIONã確èªãã¾ãã
çµå±ã©ãããã
ï¼ã¤ï¼ã¤ã®ã¢ã¸ã¥ã¼ã«ã®ç¢ºèªã ããªãã©ããã£ã¦ãããããã«æãã¾ããã é »ç¹ã«æ©ä¼ããããªãpmtoosã®ã³ãã³ã群ã¯ã¤ã³ã¹ãã¼ã«ãã¦ããã¨ä¾¿å©ããã§ãã