2007å¹´02æ16æ¥14:30 ã«ãã´ãªLightweight Languages perl - CSVã¯Text::CSV(_XS)?㧠ãã®ãã¨ã«ç°è«ã¯ãªãã®ã ãã©ã CodeZineï¼Perlã«ããCSVãã¡ã¤ã«ã®é«ééè¨ï¼CSV, å ¥é, Perlï¼ ç¹ã«ããå©ç¨ãããããã¹ããã¡ã¤ã«ã¨ãã¦ãCSVå½¢å¼ãæãããã¾ããCSVãéè¨ãããå ´åãExcelã«èªã¿è¾¼ã¾ãã¦éè¨é¢æ°ããã¯ããé§ä½¿ãã¦ããã¨ãã人ãå¤ããã¨æãã¾ãããPerlãå©ç¨ãããã¨ã§ãé«åº¦ãªéè¨ä½æ¥ãç°¡åãã¤é«éã«ã§ãã¾ãã ããã¯ã¡ãã£ã¨åé¡ã my @d = split(/,/, $_); å®ã¯CSVã¨ããã®ã¯ä»¥å¤ã¨æ±ãã«ãããã©ã¼ãããã§ãä¾ãã°"I, Robot","Robots and Empire"ã¨ãã£ãããI, Robotã¨Robots and Empireã¨åãåºããã£ã¼ã«ãã¯äºã¤ã§ãªããã°ãªããª
Perl or Die !!ãã£ã¨Perlã«ã¤ãã¦è©±ãã¾ãããããã®ããã°ã¯ãPerlã«ã¯èå³ããããã©ãã¨ã£ããããè¦ã¤ãããªãã¦é£ã³è¾¼ããªã人åãã«æçãã«èªåã®çµé¨ãå«ãã¦Perlã®é åãä¼ãããã®ã§ãããã¡ããå®éã«Perlã使ããããã«ãªãããã®ææ³ã®è§£èª¬ãè¡ãã¾ãããPerlã¨ããè¨èªã®æåçãªé¢ç½ããããã¦ã¯ç§ãæ¹ãããçç±ã«ã¤ãã¦ãããç¨åº¦è«ççã«èª¬æãããã¨æãã¾ãã ãªãã ããä¸éçã«ããã°ã©ãã³ã°è¨èªãã¯ãããã«å½ãã£ã¦ã ãHello Worldãã¨ããæååãåºåãããã¨ãå°å ¥ã®æåã ã¨ããæ¦å¿µããã£ã¦ã ã¾ã便å©ãªã®ã§ããã«åããã¦ãããã¾ãã ãããHello Worldã®ããã°ã©ã ã§ãã use strict; use warnings; print "Hello World\n"; ãã¾ããªã Hello Worldããã°ã©ã ã®åé ã§åºã¦ãããuse st
ãã¤ãã¼ã¸ã£ãã³æ ªå¼ä¼ç¤¾æ§ã®ãªãµã¬ãªã«ãã§ã«ã¦éå¬ãããYokohama.pm #6ã«åå ãã¦ãã¾ããã Yokohama.pm #6 x Perl Casual #3 ãéå¬ãã¾ã - Yokohama Perl Mongers Perl Casualæ ã¨ãããã¨ã§ãã¼ããã¹ã¼ããã¨ä¸ç·ã«Web APIãã«ã¸ã¥ã¢ã«ã«ä½¿ã£ã¦ã¿ããã¨ããæ¯è¼çåå¿è åãã®ã»ãã·ã§ã³ããããã¦ããã ãã¾ããã å ¨è£¸botã®ãããªTwitterã§çºè¨ãæ¹å¤ãã¦POSTãããããªã¹ã¯ãªãããã©ããªæãã§æ¸ãã®ãã ã¨ãããèªåã¯ãããã£ã¦ããã®ã ãã©ä»ã®äººã¯ã©ããã¦ãã®ï¼ã¨ããåãããããããã¦ãã¨ããããèªåãæãã¦ã¿ããã¨ã«ãã¾ããã @941ãããæ©éé²ç»ãUPãã¦ãã ãã£ã¦ãã¾ãããããã¨ããããã¾ãï¼èªåã®ã©ã¤ãã³ã¼ãã£ã³ã°ã¯ 01:24:00 ãããããã http://www.ustream.tv/
ã¢ãã³ãª Perl ã®éçºç°å¢ã®æ§ç¯æ¹æ³ ä¸è¬ç㪠OSX ç°å¢ããã³ Linux ç°å¢ã«ããããã¢ãã³ãª Perl éçºç°å¢ã®æ§ç¯æ¹æ³ã«ã¤ãã¦ã¾ã¨ãã¦ã¿ããã perlbrew ã®ã¤ã³ã¹ãã¼ã«perlbrew ãã¤ãããã¨ã«ãããç°¡åã«ææ°çã® Perl5 ãå©ç¨ãããã¨ãã§ããããã«ãªãã perlbrew ããããã% curl -L http://xrl.us/perlbrew | perl - install % ~/perl5/perlbrew/bin/perlbrew init ~/.bashrc (ã¾ã㯠~/.zshrc)ã« source ~/perl5/perlbrew/etc/bashrc ã追è¨ããããããã·ã§ã«ããã¡ããããææ°çã® perl ãã¤ã³ã¹ãã¼ã«ããã% perlbrew install perl-5.12.1 % perlbrew switch pe
å¶ç¶ãããããã¢ããçºè¦ãã¾ãããã³ã³ã½ã¼ã«ã§éã¹ãperlãããªã¹ã§ãã ã¹ã¯ãªã¼ã³ã·ã§ããã¨ã£ã¦ã¿ã¾ããã ãªãã¨ãmacbookã®ã¿ã¼ããã«ä¸ã§ã«ã©ãã«ãªãããªã¹ãå æ°ããåãã¦ã¾ãï¼ ããã«ãã¦ãã俺ãããªã¹ä¸æã ãªããã ã£ã¦ã®ã¯ããã¨ãã¦ãã½ã¼ã¹ãè¦ã¦ã¿ã¾ããããé£èªåããã¦ã¾ãã #!/usr/bin/perl $_='A=15; B=30; select(stdin); $|=1; select(stdout);$|=1; system "stty -echo -icanon eol \001"; for C(split(/\s/,"010.010.010.010 77.77 022.020.020 330.030.030 440.044.000 055.550.000 666.060.". "000")){D=0;for E(split(/\./,C)){F=0;for
The document discusses various web application frameworks and deployment methods in Perl. It covers common frameworks like CGI, mod_perl, Catalyst, and PSGI. It then discusses running PSGI applications with plackup, configuring middleware, and deploying PSGI apps behind web servers or as standalone daemons. Finally, it briefly covers application deployment and management with tools like daemontool
Perlå¦ç¿è ãããç¨åº¦Perlã«æ £ãã¦ããã¨ãä»ã®äººã®æ¸ããã³ã¼ããèªãæ©ä¼ãå¢ãã¦ãã¾ããããã§ã¤ã¾ã¥ã人ã¯å¤ãã®ã§ã¯ãªãã§ãããããããè¨ãç§èªèº«ããã®ä¸äººã§ã(ç¬) ã¢ãã³ãªPerlã¯DSL(é»éè¡?)çãªæ¸ãæ¹ããã¦ããé¨åãå¤ããé°å²æ°ã¨ãã¦å¦çå 容ãã¤ãã¿ãããã®ã§ãããéã«ææ³çã«æ§æãç解ããã®ãé£ãããã¨ãå¤ãã§ãã ãç¥ã£ã¦ãã人ã«ã¯å½ããåãç¥ããªã人ã«ã¯é»éè¡ã Perlã«ã¯ããããã®ãå¤ãã®ã§ããããã£ãã¨ããã§æ©ãã§ãã人ãå¤ãã®ã§ã¯ãªããã¨æãããã®ã¨ã³ããªã¼ãæ¸ãã¦ã¿ããã¨ã«ãã¾ãããæ°ãåãã°ç¶ããæ¸ãã¾ããééã£ã¦ããé¨åããããã¨æãã®ã§ããã¯ãã³ã¡çã§ãææããã ããã¨å©ããã¾ãã æ¬æ¥ã®ç®æ¨ã¨ãµã³ãã«ã³ã¼ã 裸ã®ã¯ã¼ã(bareword)ã¯æããªã encode cp932 => $str; sub PI(){3.1415926535} ã¦ãã¨ã§
èªåç¨ã¡ã¢ã§ãã ãããããªãµã¤ããåèã«ãã¾ããããå®å ¨ãªã³ã¼ããè¦ã¤ãããªãã£ãã®ã§ã¨ãããããªã³ã¯ã¯çç¥ãã¾ãã Twitterã®OAuthClientãä¸è¨URLããè¨å® http://twitter.com/oauth_clients consumer_keyã¨consumer_secretãåå¾ããã ããã¾ããªæµã index.html ãããªã³ã¯ã§ sample.pl ã«ã¢ã¯ã»ã¹ããTwitterã®OAuth許å¯ç¨ã®ãã¼ã¸ã¸ãªãã¤ã¬ã¯ãã OAuth許å¯ç¨ã®ãã¼ã¸ã§è¨±å¦ãè¨å®å¾ãsample.pl ã§è¨å®ãã callback_url (ããéè¦)ã¸ãªãã¤ã¬ã¯ãããã(ãã®å ´åã¯callback.pl)ã callback.pl 㧠oauth_token 㨠oauth_verifier ãåå¾ããupdateã試ã¿ãã æåã§ããã°ããã¤ã¼ãå ã¸ã失æã§ããã°Twitt
以åãDave Crossæ°ã®"ä½æ ãä¼æ¥ã¯Perlãå«ãã®ã"ãç´¹ä»ãããã¨ãããã¾ãããæ°ã®æè¿ã®ã¨ãã»ã¤ã¯ãã®å¾æ¥èã§ã"Crufty Old Perl"ã¨é¡ããã¦ãã¾ããè¦ã¯ãããä¼ç¤¾ã®å¹¹é¨éã«ããè¦ãè¦ãã®Perlå»çµ¶ã®ããã®ã½ã¼ã·ã£ã«ã¨ã³ã¸ãã¢ãªã³ã°ãå·¦ç¨ã«ã¯å¹æãç¡ãã£ãã®ã¯ããã£ãããç¾å ´ã®éçºè ã®å ã«ä»è¨èªã®ãã¬ã¼ã ã¯ã¼ã¯ãæå±ãããã¨ãå¤ããªã£ã¦ãããã¨ãæãã¦ããã£ãããã¾ãã ç§å人ã®æè¦ã§ãããæ¬å½ã®æå³ã§åªããéçºè ã¨ããã®ã¯2å²ããã°ããæ¹ã§ãæ®ãã®8å²ã¯å¡äººãããã¯é§ç®ãªéçºè ã§ããå¿è«ãä½ãæ¯éå£ã®åä½ã¨ãããè°è«ã¯ã¾ã¡ã¾ã¡ã ãã証æåºæ¥ãããã§ãããã¾ãããããããä¾ãã°å°çä¸ã®å ¨äººé¡ãæ¯éå£ã¨ããã°ã人é¡ã«æ¬å½ã«è²¢ç®åºæ¥ã人ã ã2å²ãããã°ãä¸çã¯ãã£ã¨å¹³åã«ãªã£ãã§ããããããéçºè ã®å ´åã§ã2å²ããã¯ãã£ã¨ãã£ã¨å°ãªãã®ãç¾ç¶ã§ãããã å¡äººï¼å¿è«
ãµãã¨ã¯å½¼å¥³ã®èªå® è¿ããæ¹åå°é§ åã®ã¹ã¼ãã¼ãã¼ã±ããã§å¾ ã¡åãããããã彼女ã¯èªè»¢è»ã§å¾ãã追ãã¤ãã¨è¨ããåã¯å¤§ããªã³ã¤ã³ãã¼ãã³ã°ã¸è»ãåãããç èãä¸æ¬å¸ã£ã¦ããã¹ã¼ãã¼ãã¼ã±ããã¸åããã¨ãã²ã£ãããªãã«ä¸»å©¦çãªå¥³æ§ããã°ãã¡ãããå ¥ãå£ãåºããå ¥ã£ãããã¦ãããæå»ã¯åå¾5æã«ãªããæè¨ããç®ãä¸ããã¨ãå¾ ããã¡ãã£ãããã¨å¤§ãã¦æªã³ãã¦ãªãæ§åã§ãµããæã¶ãã§ãã£ã¦ããã ã礼ã«æçãä½ãã¨ã¯ããããµãã®å®¶ã«ã¯é£æãåå足ãã¦ããªããããããããã¦ã¹ã¼ãã¼ãã¼ã±ããã«å¯ããã¨ã«ãªã£ãããµãã¯éèã³ã¼ãã¼ããç²¾èã³ã¼ãã¼ã¾ã§ãã¾ãã§åªç§ãªã«ã¼ããã«å°ãããããã«ç¡é§ãªãç¹æ¤ãã¦ãã£ãã欲ããé£æãããã¨ã2ç§éç¨åº¦ããããåè¦ããä¸åº¦æã«åã£ããããããããè±èãããè¿·ããã¨ãªãåãæã£ã¦ããã«ã´ã«æ¾ãè¾¼ãã ãæå¾ã«ã¢ã«ã³ã¼ã«é£²æãå·ãããã¦ããæ£ã®åã¸è¡ãã¨ãç§ã飲ãããã¨ã
ã³ãã¥ããã£ã»PMã°ã«ã¼ã Perl Mongersã¨ã¯Perlæè¡è ã®éã¾ãã§ãå°åãã¨ã«ãã¤ã¾ã£ã¦å®æçã«åå¼·ä¼ã»æ å ±äº¤æä¼ãªã©ãè¡ã£ã¦ãã¾ããããè¿æã«ãªãå ´åã¯æ¯éç«ã¡ä¸ãã¦ã¿ã¦ã¯ãããã§ããããï¼ãã®éã¯JPAãããè¬æ¼ã«ãããããããã¾ããã®ã§ãæ¯éé£çµ¡ãï¼ perl-users.jp - æ¥æ¬ã®Perlã¦ã¼ã¶ã®ããã®ãããµã¤ã perl-mongers.org - æ¥æ¬ã®Perlã¦ã¼ã¶ã®ããã®ãå½¹ç«ã¡ãµã¤ã Shibuya.pm Yokohama.pm Kansai.pm Fukuoka.pm Okayama.pm Perl Advent Calendar Advent Calendarã¨ã¯å ã ã¯ãªã¹ãã¹ã¾ã§ææãæ°ãã¦å¾ ã¤ããã®ã«ã¬ã³ãã¼ã§ããããPerl Advent Calendarã¨ã¯ã¯ãªã¹ãã¹ææã«25æ¥ããã¦ä¸æ¥ä¸ã¤ã®ãã¼ãã«ãã£ã¦æè¡çãªTipsãæ¸ãã¦ãããµã¤
æ¸ç±(2) ãã¡ãã®ã»ã¯ã·ã§ã³ã§ã¯å 容ãJPAå´ã§ç¢ºèªãã¦ããªãããã¾ãã¯å 容ã»è¡¨è¨æ¹æ³ãè¥å¹²å¤ããã®ã並ã¹ã¦ããã¾ãããªããå¤ããåºæºã¯JPAã®ç¬æã¨åè¦ã§æ±ºå®ãã¦ãã¾ããã主ã«ã³ã¼ãã®æ¸ãæ¹ã§å¤æãã¦ãã¾ãï¼ä¾ï¼ &foo() ã®ãããªé¢æ°å¼ã³åºãããã¦ãããã®ããæããã«Perl 4ãPerl 5.8以åã®ã¢ã¸ã¥ã¼ã«ãã¹ã¿ã¤ã«ã使ã£ã¦ãããã®)ãPerlã¯å¾æ¹äºæã大åã«ããè¨èªã§ãã®ã§ä½¿ããå 容ãå¤ãã§ããã確èªã¯ãã¾ãããã[ãã¡ãã®ææ¡ã«ééããããå ´åã¯ãä¸å ±ãã ãã]
Plagger 注æ ãã®ãã¼ã¸ã¯åãªãã¤ã³ã¹ãã¼ã«æé ã®ã¡ã¢ã§ããPlaggerã¯éçºãæ´»çºãªã®ã§ãããã®æ å ±ã¯å¤ããªã£ã¦ãããã¨ãå¤ãã§ãã Plaggerã«ã¤ãã¦ã®æ£ç¢ºãªèª¬æ㯠Plaggerå ¬å¼ãµã¤ã Shibuya.Plaggers Plagger Plugin ã¯ã¦ãªããã¯ãã¼ã¯ - ã¿ã° plagger ãªã©ãåç §ãã¦ãã ããã æ¦è¦ãç¥ãããå ´åã¯å ¬å¼ãµã¤ãã®Presentationsã«ãããYAPC::Asia 2006 TokyoããPlagger Conference 1 Keynoteãã®ã¹ã©ã¤ããåç §ããã¨ããã§ãããã代表çãªãã¢ã¨ãã¦Elementary, ... Googleã§ãã¯ãã¸ã£ããã¨æ¤ç´¢ããã¨ãã¶ãå±ãããã«ããã¾ã§ãããã¾ãã 解説 Plaggerã¯ãmixiãBloglinesãWebãµã¤ããªã©æ§ã ãªã¨ãããããã¼ã¿ãåã£ã¦æ¥ã¦ããããããªãã£
åã åãååããã®ç¶ãã§ãä»åã¯ã¢ã¸ã¥ã¼ã«ã®ã²ãªå½¢ãã¤ãã話ãåãä¸ãã¦ã¿ã¾ããã Module::Setupã®ä»¶ã«ã¤ãã¦è£è¶³ãã¦ããã¨ãäºå調æ»ã®æç¹ã§ã¯force installãããã¨ããã¼ã ãã£ã¬ã¯ããªã¾ããã®å¦çãããã¦ã¦ãã¾ãåããªãã£ããã¨ããåé¡ããã£ãã®ã§ããããã®å¾ã¡ã¤ã³ãã·ã³ã§ãã¹ãããã¨ãã«ã¯ã©ããããããåé¡ãåç¾ããããã¡ã®HOMEç°å¢å¤æ°ã®åé¡ãªã®ãããããã¯ã¦ã¼ã¶æ¨©éã®ãããï¼ã¡ã¤ã³ãã·ã³ã§ã¯Adminã¬ãã«ã§å ¥ã£ã¦ãããã©ãäºå調æ»ã®ã¨ãã¯éã£ã¦ããããï¼ãããã¨ãOSã®ãã¼ã¸ã§ã³ãã®ä»ã®çç±ããã£ãã®ãã¯ã¾ã 追跡ãã¦ããªãã®ã§ãããã¨ãããããã¹ãã«ã¤ãã¦ã¯Yappoããã«ãããããéããã¦æ°ããã®ããªãªã¼ã¹ãã¦ããã ãã¦ããã®ã§ãã¾ã¯åãããã«ãªã£ã¦ãã¾ãï¼Module::Collectã®æ¹ãgithubçããªãªã¼ã¹ãã¦ããã ããã¨ããããããï¼Yap
Perl ⺠åºç¤ææ³ ITã®ç¾å ´ã§Perlãå¿ è¦ã«ãªã£ã¦ãä»åå¼·ãã¦ããã¨ããæ¹ã¯ãããã¾ããã? ä»ã®è¨èªãããç¨åº¦ç¥ã£ã¦ããæ¹ããPerlåºç¤ææ³æéãã¹ã¿ã¼ããèªãã°ãPerlã®ä½¿ãæ¹ã®åºç¤ããã¹ã¿ã¼ãã¦Perlãæ¸ããã¨ãã§ããããã«ãªã£ã¦ãã¾ãã åºç¤ ææ³ãã§ã㯠ææ³ããã§ãã¯ãå³ããããããã«æåã«å¿ ã次ã®2è¡ãæ¸ãããã«ãã¾ãã use strict; use warnings; ãuse strictãã¨ãuse warningsãã¨ãã2è¡ãå ãããã¨ã§äºåã«ææ³ãã§ãã¯ãè¡ãããã®ã§ãã½ã¼ã¹ã³ã¼ããè¨è¿°ããä½æ¥ã¯éããªããã³ã¼ãã®å質ãä¸ããã¾ãã printé¢æ° æååãåºåããã«ã¯printé¢æ°ã使ç¨ãã¾ãã print "Hello world"; Perlã§ã¯æ¨æºé¢æ°ãäºåã«å®ç¾©ããã¦ããé¢æ°ã§æ¬å¼§ãçç¥ãããã¨ãã§ãã¾ãã ã³ã¡ã³ã Perlã®ã³ã¡ã³ãã§
package EmojiMail; use strict; use warnings; use MIME::Lite; use MIME::Base64 (); use Mail::Address::MobileJp; use Encode; use Unicode::Transform (); use YAML::Syck; sub new { my ($class, $opt) = @_; my $self = bless { from => $opt->{from}, to => $opt->{to}, subject => $opt->{subject}, body => $opt->{body}, }, $class; $self->{emoji_map} = YAML::Syck::LoadFile($opt->{emoji_map}); $self->build; retu
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}