#author("2017-02-26T23:38:55+09:00","","") #author("2017-02-26T23:49:54+09:00","","") [[Ubuntu Server備忘録]] #contents * ''Perl'' [#b138bf79] 使用するCGIで必要なライブラリを一覧で管理 * ライブラリ追加 [#xcf2b06f] - mime sudo aptitude install -y libmime-tools-perl - JSON sudo aptitude install -y libJSON-perl - Encode sudo aptitude install -y libEncode-perl - DateTime sudo aptitude install -y libDateTime-perl - MySql sudo aptitude install -y libDBD-mysql-perl - DOM sudo aptitude install -y libXML-DOM-perl - Xml① sudo aptitude install -y libXML-Simple-perl - Xml② sudo aptitude install -y libXML-Twig-perl - Xml③ sudo aptitude install -y libxml-perl - CGI sudo aptitude install -y libCGI-perl - Twitter sudo aptitude install -y libNet-Twitter-perl - Compare sudo aptitude install -y libList-Compare-perl - Digest sudo aptitude install -y libDigest-perl - SHA1 sudo aptitude install -y libDigest-SHA1-perl - その他 wget http://launchpadlibrarian.net/85191944/libdigest-sha1-perl_2.13-2build2_amd64.deb dpkg -i libdigest-sha1-perl_2.13-2build2_amd64.deb *Perl Tips [#gd474d19] - ファイル入力 #highlighter(perl,number){{ #!/usr/bin/perl $file="kouji_2000.csv"; $file="TEST.csv"; open (IN, $file) or die "$!"; while (<IN>) { print $_; } close (IN); }}