perl
ããã«å¿ããã®ã§ã¡ã¢ã HTML::Templateãããã©ã«ãã®ã¾ã¾ä½¿ãã®ã¯ããªããã£ããã ãã³ãã¬ã¼ãã§å®ç¾©ãã¦ããªããã©ã¡ã¼ã¿ããHTML::Templateã«ä¸ãã¦ãã¾ãã¨ã¨ã©ã¼ãåºãã ãã³ãã¬ã¼ãã«ã»ããããå¤ã¯ãäºåã«ä¸è¦ãªå¤ãåé¤ããå¿ è¦ãããã®ããªã¨â¦
æè¿Docomoã®imodeIDã®åå¾å¯¾å¿ãããã®ã§ãã¨ããããã¾ã¨ããâ Docomo Docomoã¯imodeIDã¨ããã®ãhttpç°å¢ã§ããã°ä¸è¨ã®ããã«ãã¦åå¾ã§ããã ç¾å¨ãhttpsç°å¢ã§ã¯éä¿¡ãããªãã®ã§æ³¨æãå¿ è¦ã§ãã Perlã®ã¹ã¯ãªããå´ã§ã¯ä¸è¨ã®ããã«ãã¦åå¾ my $uimâ¦
Perlã«é¢ããã«ã³ãã¡ã¬ã³ã¹YAPC::Asia 2008ã®ç»é²åä»ãå§ã¾ã£ããããªã®ã§ç³è¾¼ã¿ã¾ããã http://conferences.yapcasia.org/ya2008/ ããã¨ãé¢ç½ããã ã(ä»®é¡) ã¢ãã²ã¼ã¿ã¦ã³åºç¤ã¢ã¸ã¥ã¼ã«ãªã¼ãã³ã½ã¼ã¹åã¨è§£èª¬ã http://conferences.yapcasia.org/â¦
PDFãperlããåçã«ä½æããPDFJã¨ããããªã¼ã®ã½ããã¦ã§ã¢ã触ã£ã¦ã¿ãã http://hp1.jonex.ne.jp/~nakajima.yasushi/UTF8ã«ã対å¿ãã¦ããã¨ãããã¨ã§ãä»åã¯UTF8ã§ä½æããã¡ããPerlã®ã½ã¼ã¹ã¯UTF8ã§ä¿åãã¦ã¾ããPDFJã®è¯ãã¨ããã¯ãåçã«æ ç·ä»â¦
Unicodeã«ãã対å¿ãã¦ããªãç¹æ®ãªæ¼¢åãå«ãã¨ã¯ã»ã«ãã¡ã¤ã«ãããã¨ãã¾ãï¼ã¬ã¢ã±ã¼ã¹ï¼ï¼ ããããDBãµã¼ãã®UTF8å½¢å¼ã®ãã¼ãã«ã«ä¸æ¬ç»é²ããæ¹æ³(ä»åã¯PostgreSQLã§å®æ½ãCSVãã¡ã¤ã«ã¤ã³ãã¼ãæãéãã ãã§ãMySQLã§ãä»ã®DBãµã¼ãã§ã対å¿å¯è½â¦
Jcode.pmã§ãh2zã¨ããã¡ã½ããããããããã使ãã¨ãåè§ã«ããå ¨è§ã«ãã«ã§ããã£ã¦ãã¨ã ã£ãã®ã§ãä¸è¨ã®ããã«å®è£ ï¼ãã¡ã¤ã«ã¯UTF8ã§ä¿åï¼ use Jcode; use utf8; my $str = 'アイウエオ'; my $obj = Jcode->new($str,'utf8'); #åè§ã«ããå ¨è§ã«ãã«å¤æ â¦
DBã«Perlã®DBIã¢ã¸ã¥ã¼ã«ã使ã£ã¦Insertããã¨ãã¯ãä¸è¨ã®ããã«ãã¦ã¾ããã ãã¼ãã«åã¯TableName,ã«ã©ã åã¯hoge1,hoge2,hoge3ã¨ããå ´å my $dbcon = DBI->connect(....); my $dbInsert = $dbcon->prepare(q/insert into TableName (hoge1,hoge2,hoge3â¦
ã¡ãã£ã¨è¨³ãã£ã¦ãsjisã®webã¢ããªãä½ã£ã¦ã¾ããDBã¯Postgres(EUC_JP), è¨èªã¯Perl (SJIS)ãHTMLãSJISã Postgresãsjisãã¤ãã£ãã«ãããã£ããã©ãeucãutf8ãããµã¼ãå´ã®ã¨ã³ã³ã¼ãã£ã³ã°ã¯å¯¾å¿ãã¦ããªãã®ã§ãã¯ã©ã¤ã¢ã³ãã¨ã³ã³ã¼ãã£ã³ã°ãsjisâ¦
perlã§CGIã®éçºãããå ´åã use CGI::Carp qw(fatalsToBrowser); ã¨ããã¨ãInternalServerErrorã®ç»é¢ã«ãerror_logã«åºåããããããªå 容ã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºãã¦ãããã®ã§ãéçºãå¹ççã«é²ãã ãã ãéçºæ©ã§ã¯ãããã ãã©ãæ¬çªæ©ã§ã¯ãã®ã¨â¦
CPANã®CGIã¢ã¸ã¥ã¼ã«3.15ã§ã¯åé¡ãªãã£ããã ãã©ã3.29ã«ãããçªç¶åé¡çºçãUTF8ã§ãã¼ã¿ããã©ã¦ã¶ããåãåããCGIã¢ã¸ã¥ã¼ã«ã®paramé¢æ°ã§ãã¼ã¿ãåå¾ããã¨ããwide character printãã¿ãããªapacheã¨ã©ã¼ãçºçã åå(http://d.hatena.ne.jp/icâ¦
ä»ã®éçºã¯ãDB, HTML, ããã°ã©ã ã®æåã³ã¼ããå ¨ã¦UTF-8ã§çµ±ä¸ãã¦ãããããããã¨ãcharsetãutf-8ã«ãªãã®ã§ããã©ã¦ã¶ããéä¿¡ãããæåãutf-8ã«ãªãããããåãåã£ã¦ãDBã«utf-8ã§æ¸ãè¾¼ããDBã®ãã¼ã¿ãç»é¢ã«åºåããå ´åãDBããUTF8ã§ãã¼ã¿â¦
rpmã§ImageMagickãã¤ã³ã¹ãã¼ã«ããã¦ãã®ã§ãperlMagickãCPANçµç±ã§æ®éã«ã¤ã³ã¹ãã¼ã«ã§ããã¨æãå®è¡ãããã©ãMagickCore.hãç¡ãã¨ããã¨ã©ã¼ã§ã¤ã³ã¹ãã¼ã«ã§ãããè²ã 調ã¹ã¦ä¸è¨ã®æ¹æ³ã§æåããã®ã§ã¡ã¢ãç°å¢ã¯VineLinux4.1ä¸è¨ã®ãµã¤ããããIâ¦
WEBã§ããããç»é²ã»ä¿®æ£ã»åé¤ã®éã®ç¢ºèªç»é¢ã®å®è£ ããã¦ããã ãã©ãããçµæ§ã¡ã³ãã¯ãµã¤ã確èªç»é¢ã®ä¾ã¨ãã¦ãMixiã ã£ããæ¥è¨ãç»é²ããéã«ãç»é²ç¢ºèªç»é¢ããã£ã¦ãããã§åé¡ãªããã°å®éã«DBã«ç»é²ãè¡ã£ã¦ãã確èªç»é¢ãä½ãã¨ã以ä¸ã®ï¼ããã¼â¦
ããç¥ããªãã¦ããªãã¯ã¾ã£ããhiddenã®valueã«ã»ãããããã¼ã¿ãã¿ã°ã¨æ¹è¡ã³ã¼ããã¨ã¹ã±ã¼ããããã¼ã¿ã§ããããPOSTããã¨ããµã¼ãã§åå¾ããhiddenã®å¤ãå½ç¶ã¨ã¹ã±ã¼ããããå¤ãã®ã¾ã¾ãã¨æã£ã¦ããããå®ã¯ã¨ã¹ã±ã¼ãããã¦ããæåã¯ãvalueã®â¦
CentOS4.4ã¯ãperl5.8.5ãã¤ã³ã¹ãã¼ã«ãããã®ã§ãperl5.8.8ã«ãããå ´åã¯ãä¸è¨ã®æä½ãå¿ è¦ã vi /etc/yum.respos.d/CentOS-Base.repo enable=0ãenable=1ã«ããã ãã [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centoâ¦
ä¼ç¤¾ã®ãµã¤ãã«ååããã¼ã¸ãä½ããããªã¼ã®CGIã使ãããã¨æã£ããã©ãèä½æ¨©è¡¨ç¤ºã¨ãè²ã é¢åãªã®ã§èªä½ãããCPANã¢ã¸ã¥ã¼ã«ä½¿ãã¨ãç°¡åã«ä½ãã¡ããï¼ ä»åã®æ©è½ã¯ãããªæãã ååãã»ç³è¾¼ã¿æ©è½ å¿ é é ç®ã»æååãã§ã㯠ã¡ã¼ã«ã¢ãã¬ã¹ãæ£ããâ¦
RSSã®åºåãperlããè¡ã£ã¦ã¿ãã ã¨ããããCPANããXML::RSSã¢ã¸ã¥ã¼ã«ãã¤ã³ã¹ãã¼ã« perl -MCPAN -e shell cpan> install XML::RSS ãããããã¨ãXML::RSS::Expatã§ã³ã³ãã¤ã«ã¨ã©ã¼ãåºãã ã¨ãããã¨ã§ãExpat XML Parserã¨ããCã®ã©ã¤ãã©ãªãã¤ã³â¦
æ¥è¨ã®ãã¼ã¿ãCSVå½¢å¼ã§ããããããåç´ã«RSS対å¿ããããã¨æããã¡ãã£ã¨ã ã調æ»ã XML::RSSã使ããããªã®ã§ãããããã®ã¾ã¾ä½¿ããã å¤åãã使ãã°ããåºæ¥ããã
æ¨æ¥ãmod_perl2ãã¤ã³ã¹ãã¼ã«ããæããã§ã«CGI.pmã®3.10ãã¤ã³ã¹ãã¼ã«ãã¦ãã£ãã®ã§åé¡ãªãã£ããã¨æã£ã¦ãã¼ã¸ã§ã³ã¢ãããã¦ãªãã£ãã ããã¦ãmod_perlç¨ã®ãã£ã¬ã¯ããªã§ãuse CGIãå©ç¨ããã¹ã¯ãªãããå®è¡ãããã¨ã Can't locate Apache/Reqâ¦
ã¨ããããmod_perlãå ¥ãã¦ã¿ãã äºåã«CPANãããCGI.pmã¨Compress::Zlibãè½ã¨ãã¦ã¤ã³ã¹ãã¼ã«ãã¦ãããããã¦CPANããmod_perl2ããã¦ã³ãã¼ããApache2ã«ã¯mod_perl2ãå¿ è¦ãªã®ã§ééãã¦mod_perl1ããã¦ã³ãã¼ãããªãããã«ãApacheã®DSOã使ã£ã¦â¦
ã¡ãã£ã¨CGIã®ããã©ã¼ãã³ã¹ãDBæ¥ç¶ã®è² è·ã®ä½æ¸ãå ¼ãã¦ãmod_perlã®å°å ¥ãããããã¨æã£ã¦ããã©ãæ·å± ãã¡ãã£ã¨é«ãããå¤æ°ã®åæåã¨ãã¹ã³ã¼ãã¨ããããªãèãã¦è¨è¨ãã¦ãããªãã¨ä¿®æ£ãã¤ãããã ã¨ããããããªã©ã¤ãªã®mod_perlã®æ¬ã®å 容ï¼â¦