2010-07-01ãã1ã¶æéã®è¨äºä¸è¦§
ååã®PerlCasualã«ãåå ããã¦ããã ãã¾ããããä»åãè¡ã£ã¦åãã¾ããï¼ ä¾ã«ãã£ã¦èµ°ãæ¸ãã®ã¡ã¢ããææ³ãªã©ã ãªã½ã¼ã¹ç£è¦ãã¼ã«ã»ãã¬ã¼ã ã¯ã¼ã¯CloudForecastã®ç´¹ä» kazeburoãã CloudForecastã®ç¹å¾´ãªã©ã åæ£å¦çãé«éåä½ å¤§è¦æ¨¡éç¨ã«ãâ¦
ä¼ç¤¾ã§mojoliciousã使ã£ã¦éçºãããµã¼ãã¹ãããã®ã§ããã ãªãªã¼ã¹ãè¿ã¥ãã¦ããã®ã§ãããã¤ãã©ãããã決ãããã¨ã«ã perlã®WAF使ã£ããããã¤ããããã¨ããªãã®ã§ ã©ã®æ¹æ³ãããã決ãããã¦ããã ãã®ãããããã試ãã¦ã¿ã¦åé¡ãªããããªã®â¦
éè¦ãªãã¨æãã¾ãããperlã§æ°å¤ãï¼æ¡æ¯ã«ã«ã³ãåºåããã©ã¼ãããã«å¤æãã æ£è¦è¡¨ç¾ã®ãã³ããã¼ã¯ã§ãã*1 å ãã¿ http://www.din.or.jp/~ohzaki/perl.htm#NumberWithComma ã¹ã¯ãªãã #!/usr/bin/perl use strict; use warnings; use Math::BigInt;â¦
perlbrewã§ã¤ã³ã¹ãã¼ã«ããperlã§apacheã¨mod_perlãã½ã¼ã¹ãã«ããããã¨ããã mod_perlã®makeã§ã¨ã©ã¼ãçºçã 以ä¸ã¯ãã®å¯¾å¿è¨é²ã ç°å¢ os CentOS5.3 64bit perl 5.12.1 apache 2.2.15 mod_perl 2.0.4 ã¨ã©ã¼å 容 libperl.a(op.o): relocation R_X86_â¦
ãã¤ãã¿ã¼ã§ã¤ã¶ããããã¢ããã¤ã¹é ããã®ã§è©¦ãã¦ã¿ãã ãã®æ¹æ³ã§ããã®ãã©ããã¯ä¸å®ã§ããä¸å¿æé ãã¡ã¢ã è¦ã¯ããµã¼ãå ¨ä½ã§ã®perlããã©ã«ãç°å¢ãã¿ããªä¸ç·ã«ãããã£ãã¨ãããã¨ã /usr/bin/perl ãç´æ¥å¤ãã¡ããã®ã¯ããããåé¡ããããâ¦
Mojoliciousã¯ããã©ã«ãã§ã¯ lib/AppName/ é ä¸ã«ç½®ããããã¡ã¤ã«ãã³ã³ããã¼ã©ã«ãªãã¾ãã ã§ãæ°ãå¢ãã¦ããããã£ã¬ã¯ããªä½ã£ã¦ç®¡çãããã§ãããï¼ ãããªã¨ãã¯namespaceã使ãã¨å®ç¾ã§ãã¾ãã ã§ã¯ã以ä¸ã®ãããªæ§æã«ãããå ´åã®è¨å®ãè¦ã¦â¦
â»ãã£ã¡ãææ° http://d.hatena.ne.jp/tori243/20100808/1281248450 ä½ã£ã¦ã¿ãã Mojoã¨DBIã¨sqliteãã¤ã³ã¹ãã¼ã«æ¸ã¿ãªã daemonã§ãcgiã§ãã³ããããã ãã§åãã¯ãâ¦ï¼ http://gist.github.com/463484 *1 ã¦ãã»ã¨ãã©yusukebeããã®ã³ã¼ãã³ããã§ããâ¦