This plugin provides Perl5 & Pod support. Basic functionality may be extended with additional plugins: Languages and Frameworks: Mojolicious HTML::Mason Mason2...
ã¤ãããä½ãã«ã¯ä»¥ä¸ã®ããã«ããã curl -o cpanm https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm /usr/bin/perl cpanm -n -L tools App::FatPacker::Simple Server::Starter /usr/bin/perl -Mlib=tools/lib/perl5 cpanm -n -L local Server::Starter /usr/bin/perl -Mlib=tools/lib/perl5 ./tools/bin/fatpack-simple --output=start_server local/bin/start_server ä¸æ¦ tools/ 以ä¸ã«ã¤ã³ã¹ãã¼ã«ãã¦ããã®ããã¤ã³ããServer::Starter ã®ãã«ãæä¾å
Perlã®éçºè ã§ããLarry Wallæ°ããããªã¥ãã»ã«ã§éå¬ä¸ã®ãªã¼ãã³ã½ã¼ã¹éçºè ã«ã³ãã¡ã¬ã³ã¹ãFOSDEMãã«ããã¦ã2æ1æ¥ï¼ç¾å°æéï¼ã«ãåæ°ã2015å¹´ã«61æ³ã®èªçæ¥ãè¿ãããã¨ãæããã«ããã¨ã¨ãã«ãPerl 6.0ã®ãã¼ã¸ã§ã³1.0ã2015å¹´ã®ã¯ãªã¹ãã¹ã«ãªãªã¼ã¹ããã¨çºè¨ããã Perlã¯ç¾å¨ãææ°ãã¼ã¸ã§ã³ã§ããPerl 5ç³»åã¨ãéçºä¸ã®Perl 6ç³»åã«åå²ãã¦ãããPerl 6ã®éçºã¯2000å¹´ã®ã¹ã¿ã¼ã以æ¥ãé£èªãã¦ããããªããPerl 6ã§ã¯è¨èªä»æ§ã®å¤§å¹ ãªå¤æ´ãè¡ããã¦ãããPerl 4ãPerl 5ã¨ã®å¾æ¹äºææ§ã失ãããã ä»åã®Larry Wallæ°ã®çºè¨ã«ã¤ãã¦ãPerléçºè ã®ä¸ã«ã¯æççãªè¦æ¹ããããä»åã®çºè¨ã«ãã£ã¦ã2015å¹´ã®ã¯ãªã¹ãã¹ã«Perl 6ã®ãã¼ã¸ã§ã³1.0ã確å®ã«ãªãªã¼ã¹ãããããã§ã¯ãªããããã¼ã¸ã§ã³1.0ã«ã¤ãã¦èª
Devel::NYTProf 㯠Perl5 ã®ä¸çã§ãã£ã¨ã人æ°ããããããã¡ã¤ã©ã§ããã表示ãç¾éºã§ããããã¹ããããã¨ã®å¦çé度ãç°¡åã«ãããã®ã§ã¨ã¦ã便å©ã ã ãã㪠Devel::NYTProf ã§ããããStarlet/Starman ã®ãããªããªãã©ã¼ã¯å¼ã®ãµã¼ãã¼ã§ãããã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã¨ãã¿ããããå ´åã®æ¹æ³è«ã¨ãã¦ãããããããè³æãã¿ããããªãã£ãã®ã§ããã«è¨ããã®ã§ããã ç°å¢å¤æ° NYTPROF ãè¨å®ãã Devel::NYTProf ã¯ç°å¢å¤æ°ã§æåãå¤ããããã plack ã¨ãã¿ããããå ´åã«ã¯ã以ä¸ã®ããã«ããã¨ããã NYTPROF=sigexit=int:savesrc=0:start=no sigexit=int é常ãDevel::NYTProf 㯠END { } ãããã¯ã§ãã¼ã¿ã®ãã¡ã¤ãã©ã¤ãºå¦çããããªãã®ã ããSIGNAL ã«ãã£
ï¼1ï¼ã¯ãã¡ããï¼â 2ï¼ã¯ãã¡ãããã æ¹åã確èªã®ããã®ãã³ããã¼ã¯ ç¹å®ã§ããããã«ããã¯ã«å¯¾ãã¦ä¿®æ£ããçµæãæ¬å½ã«éããªã£ã¦ããã®ãã©ããã確èªããªãã¦ã¯ãªãã¾ãããããã§ã¯ãã®ããã®ãã³ããã¼ã¯ææ³ã«ã¤ãã¦ç´¹ä»ãã¦ããã¾ãã Benchmark.pm Benchmark.pmã¯Perlã®æ¨æºã¢ã¸ã¥ã¼ã«ã§ãããµãã«ã¼ãã³ãªãã¡ã¬ã³ã¹ãªã©ã§ä¸ããã³ã¼ããæå®ããåæ°ï¼0ãæå®ããã¨CPUæéã§3ç§éæ¶è²»ããã¾ã§ï¼ç¹°ãè¿ãå®è¡ããããããã®å®è¡æéãè¨æ¸¬ãæ¯è¼ãã¦è¡¨ç¤ºãã¾ãã ãªã¹ã9ã¯DateTimeã®ã¤ã³ã¹ã¿ã³ã¹çææã«ãã¿ã¤ã ã¾ã¼ã³æ å ±ã¨ãã¦DateTime::TimeZoneãªãã¸ã§ã¯ãã渡ãå ´åã¨ãæååã渡ãå ´åã§ã©ã®ç¨åº¦å¦çé度ãç°ãªãã®ããè¨æ¸¬ãããã³ããã¼ã¯ã®ä¾ã§ãï¼å³6â ï¼â ã ãªã¹ã9ãDateTimeã¤ã³ã¹ã¿ã³ã¹çæã®ãã³ããã¼ã¯ use Benchmark q
YAPC::Asia 2013ã§LTãHow to inspect a RUNNING perl processããã¦ãã¾ãã How to inspect a RUNNING perl process / YAPC::Asia Tokyo 2013 http://www.slideshare.net/hirose31/inspect-runningperl ãã³ã°ã¢ããã¨ãã¡ã¢ãªãã«é£ãã¨ããç¨ã«ããçºçããªããã³ãã³ç¶æ ã®ã·ã¥ã¼ãã£ã³ã°ããã«ã¯éçãããã°ãããä»ãã³ãã³ç¶æ ã«ããããã»ã¹ãç´æ¥ã¾ãããã®ãæã£åãæ©ãããã¼ã¨ãããã¨ã§ãæ¢åã®ææ³ã strace gdb bulkdbg gdbperl ã«å ããæä½ã® inspect-perl-proc ã«ã¤ãã¦è©±ãã¾ããã https://github.com/hirose31/inspect-perl-proc ä»ã®ã¨ãã 3 ã¤
å°ãåã§ããTest::mysqld 0.17ãã㯠copy_data_fromã¨ãããªãã·ã§ã³ãå ãã£ã¦ãã¾ãã ããã¯ãTest::mysqldèµ·åæã«ã³ãã¼å ã®dataãã£ã¬ã¯ããªãæå®ã§ãããã®ã§ MySQLã®èµ·åæéãç¯ç´ãããã¨ãã§ãã¾ãããã¹ãéå§æã«DBã«å¤§éã®ãã¼ã¿ã å ¥ãã¦ããããå ´åã«ç¹ã«æå¹ã§ãã ç¹ã«ã²ã¼ã ãªã©ã®å ´åã¯ã大éã®ãã¹ã¿ãã¼ã¿ãã³ã¼ãã®ä¸é¨ã¨è¨ããã®ã§ãã¡ããã¨ å ¨é¨æµãè¾¼ãã§ãããã¹ããå®æ½ãããã¨ããè¦ä»¶ãããã®ã§éå®ãã¾ãã ãã¦ããã®dataãã£ã¬ã¯ããªãã©ããã£ã¦ä½ãã°ãããã¨ãã話ã«ãªãã®ã§ããã ããããTest::mysqldã«äºåã«ä½ããã¦ã©ããã«é ç½®ãã¦ããã°è¯ãã§ãããã æé ã¨ãã¦ã¯ä¾ãã°ä»¥ä¸ã®ããã«ãªãã¾ãã âtmp/test_mysqld_dataâ ãdatadirã«ãã¦Test::mysqldãèµ·å DDLã¨ãã¹ã¿ã
追è¨: 1.30ã§sleepã¨retryã®ããã©ã«ããå¤æ´ã«ãªãã¾ããã詳ããã¯ããã¥ã¡ã³ããåèã«ãã¦ãã ãã 追è¨2: 2.00ã§sleepã¨retryããªããªãã¾ããã代ããã«max_waitã追å ããã¾ããã詳ããã¯ããã¥ã¡ã³ããåèã«ãã¦ãã ãããblogãæ¸ãã TCPãµã¼ãã»ã¯ã©ã¤ã¢ã³ãã®ãã¹ãã«ã¯æ¬ ãããªããã¿ããªå¤§å¥½ãtokuhiromã®ã¿ããªå¤§å¥½ãTest::TCPãPlackã®ãµã¼ãã®ãã¹ããªã use Plack::Loader; use Test::TCP; test_tcp( server => sub { my $loader = Plack::Loader->load( 'Monoceros', port => $port, max_workers => 5 ); $loader->run($app); exit; }, client => sub { my
æ¬çªç°å¢ã«perlã¨ãrubyã¨ãnodeãå ¥ãããã ãã©ããã¡ãã system perl ãããã£ã¦ãããªãã®ã§æå®ãããã¼ã¸ã§ã³ã®ãã®ãä¸è¬ã¦ã¼ã¶ã®ç®¡çä¸ã«çªã£è¾¼ã¿ããã ã§ãããããã®ãããã¾ã§ perlbrew ã¨ã rvm ã¨ã rbenv ã¨ã nvm ã¨ã nodebrew ã¨ãã§ãã£ã¦ããã ãã©ããããã«è²ã çåã湧ãã¦ããããããã§åçºå®è¡ããããã« eval "$(rbenv init -)" ã¨ããããã«ãããããï¼ ã¿ãããªã ã¨ãããã¨ã§ tokuhirom method çã«ã¤ã³ã¹ãã¼ã«ç¨ã®ç°¡åã³ãã³ãã使ã£ã¦å®è¡ããã¨ã¯ãã¹ãéãã°ããããããã¨ãããã¨ã«ããããã¨æãã åè: ãµã¼ãã¼ã®ã»ããã¢ãã㯠perlbrew ã¨ããããªãã¦ããã? ã¨ããæã®ã©ã¤ããã㯠- blog.64p.org ãããä»æã¾ã§ã¯ Perl::Build ãã©ãã«ããã¦C
ããã«ã¡ã¯, å æ¥Kansai.pmã§çºè¡¨ããã¦é ããgoccyãã¨äºå¶ï¼ ããã½ã½ã°ã«ã¼ãã§ã. ä»åã¯, ååç´¹ä»ããæè¡çè² åµã®ææ¡ã¨æ¹åãä¿ãããã«ã®ç¶ç·¨ã¨ãã¦, åãä½ã£ãPerl5ã³ã¼ãã®ã³ããæ¤åºå¨ã«ã¤ãã¦ç´¹ä»ããã¦é ãã¾ã. ã¯ããã« ä»ãPerl, Rubyçãã¾ãã¾ãªè¨èªã§, 便å©ãªã©ã¤ãã©ãªç¾¤ããã¬ã¼ã ã¯ã¼ã¯ãå©ç¨ã§ããæ代ã«ãªãã¾ãã. ãããã使ããã¨ã§ã½ããã¦ã§ã¢ã®éçºã³ã¹ãã¯æ ¼æ®µã«ä¸ãã, ããç´ æ©ãéçºãããã¨ãã§ããããã«ãªã£ã¦ãã¾ã. ããã, å½åäºå®ããã¦ããæ©è½ãå®è£ ãã¦, ãããã§ããããçµããï¼ãã¨ããããã«ãããã¾ãã. ä½ãç©ãçã¿åºãã°, å¿ ããããä¿å®ã»éç¨ããã³ã¹ããçºçãã¾ã. éçºãããã¨ã便å©ã«ãªã£ãä», éçºç©ãä¿å®ã»éç¨ãããã¨ãæ¯æ´ãããã¼ã«ãæ±ãããã¦ãã¾ã. ã§ãã, ä¿å®ãéç¨, ã¨ãããä¿å®ã«é¢ãã¦æ¯æ´ãããã¼ã«ã¯ã
Webã¢ããªã«ããã¦ãã¢ã¯ã»ã¹ããã¼ã¿éãå¤ã/大ãããªã£ã¦ããã¨ã ããã¯ã¨ã³ãã®ããã©ã¼ãã³ã¹ãä½ä¸ããã¡ã§ãã MySQLãªã©ã®RDBMSã«ãã¼ã¿ãç½®ãã¦ããå ´åã¯é©åã« ã¯ã¨ãªã¼ãæ¹åãããã¤ã³ããã¯ã¹ãå¼µããã¨ãã£ãçã§è§£æ±ºããå ´åãããã¾ããã ãã£ãã·ã¥ãå¹æçã«å©ç¨ãããã¨ã§ããé«è² è·ã«å¯¾å¿ã§ããå¯è½æ§ãããã¾ãã ã¾ããå¤é¨APIã¸ã®åãåãããªã©ãã©ããã¦ããããã¯ã¼ã¯ãä»ã®ãªã½ã¼ã¹ã®ã¬ã¹ãã³ã¹ã¿ã¤ã ã« å¼ãããããé¨åã«é¢ãã¦ã¯æ å ±ãæå ã«ãã£ãã·ã¥ãã¦ããã¨ä½ãã¨ããã§ãããã ä»åã¯Webã¢ããªã±ã¼ã·ã§ã³ã®ã¬ã¤ã¤ã¼ã§æè¿åãã©ã®ããã«ãã£ãã·ã¥ã使ã£ã¦ããã®ãï¼ ã®äºä¾ãç´¹ä»ãã¤ã¤ã¾ã¨ãã¦ã¿ããã¨æãã¾ãã ãã£ãã·ã¥ã«ã¤ãã¦ã¨ãã®åºæ¬ ãããããã£ãã·ã¥ã¨ã¯ãç°¡åã«ãµãã£ã¨è¡¨ç¾ãããªãã°ã ãä¸æçã«æ å ±ãæå ã®è¿ãå ´æã«ç½®ãã¦ããã¦å©ç¨ããææ³ããããã¯ãã®ä¸
perlã§ããããwebãµã¼ã Starman ã®çéã¶ãã¯ç®ãã¿ã¯ãç©ãããã¾ããèªåã®éç¨ç°å¢ã§ã¯ lightyã®proxyãä»ãã¦ã®æ¥ç¶ã§ããããkeepaliveã使ããªãçStarmanã®æ©è½ãçããããäºã¯ã§ããªãã ããlighty以å¤ã®apacheãnginxã¨ãReverseProxyå°éã®varnishã ã¨ã©ããªãã ãã¨çåã湧ãtestãã¦ã¿ããã¨ã«ããã æ¥ç¶æ§æ abãã³ãå´ FreeBSD 7.2-STABLE FreeBSD 7.2-STABLE Pentium E2180 2GHz MEM 2.0G ã¢ããªãµã¼ãå´ FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 Celeron 1.7GHz MEM 1.5G ã¢ããªãµã¼ãå´ã« apache-2.2.14(worker) lighttpd-1.4.26 nginx-
emacsã§å©ç¨ããperlãåãæ¿ããperlbrew.elã¨ããã®ãantipopãããä½ã£ã¦ããã®ã§ãããå°ãåããªãã£ãé¨åãä¿®æ£ããã®ã§ãç´¹ä»ãããã¨æãã¾ãã emacsã¨perlbrew perlbrewã使ã£ã¦ããã¨PATHãªã©ã®é¢ä¿ãã使ãããperlã®versionãæå®ã§ããªãæãããã¾ãããããªæã¯perlbrew.elã使ãã¾ãã ã¤ã³ã¹ãã¼ã« ã¾ããhttps://raw.github.com/kentaro/perlbrew.el/master/perlbrew.el ãããã¦ã³ãã¼ããã¦ãã¦ã以ä¸ã®è¨å®ããã¾ãã (require 'perlbrew) (perlbrew-use "perl-5.14.2") ããã«ããããã©ã«ãã§perl-5.14.2ãå©ç¨ã§ãã¾ãã perlã³ãã³ãã¸ã®pathãåå¾ãã ç¾å¨ã®perlã³ãã³ãã¸ã®pathãç¥ãããæã¯
Mac 㧠sed ã使ã£ã¦ã¿ãã空ç½ï¼æåã«ç½®æãããã¨æã£ã¦ cat file.txt | sed 's/\t/ /g'ã¨ããããæå t ã空ç½ï¼æåã«ãªã£ããsed ã¯ãã使ãã¾ãããPerl ã§ããã¾ãã cat file.txt | perl -pe 's/\t/ /g'ã§ãkãå¥ã« cat ã使ãã perl -pe 's/\t/ /g' file.txtã§ããããã ãã©ãå¦çãå°ããã¤ãã£ã¦ããæã㧠cat ã使ã£ãæ¹ããã£ããããã ã¤ãã§ã«ãæåã³ã¼ã utf8ã æ¹è¡ LF ã«ãã¦ãå ¨è§ç©ºç½ãåè§ç©ºç½ï¼åã«ç½®æãããã¨ã追å ãã㨠nkf -w -Lu file.txt | perl -pe 's/\t/ /g; s/ã/ /g'ã¨ãªããå®ç§ã Perl ã®ä¸è¡ã ãã§å¦çãæ¸ãã¦ãã¾ãããããã¯ã³ã©ã¤ãã¼ã«ã¤ãã¦ã¯ Perl one liner é perl 1è¡é
2012å¹´09æ28æ¥17:50 ã«ãã´ãªæ¸è©/ç»è©/åè©Lightweight Languages ç´¹ä» - Plack Handbook èè ããç®æ¬å¾¡ç¤¼ã Plack Handbook: Plack and PSGI Development guide ebook Plack Handbook on Gumroad miyagawa/plack-handbook ããã! å 容textããããã¨ãªããã販売æ¦ç¥contextãã æ¬æ¸ãPlack Handbookãã¯ãã¿ã¤ãã«ã©ããPSGI/Plackã®ãã³ãããã¯ãæ¸ããã®ã¯ãã®ç¶@miyagawaãã®äººãå 容ã¯ééãããããªãããä»®ã«ééã£ã¦ããã¨ãã¦ãããç´ããã é»åæ¸ç±ãªã®ã ããã ãããæ¬ä½ã¯ãPerlã§Webéçºãã¦ãã人ã®ã¿ã§ã¯ãªããé»åæ¸ç±ããããã¹ãã¨ãããã¼ã«ã¢ãã«ã¨ãã¦ãé»åæ¸ç±ãããããä½ããã¨ããå ¨ã¦ã®äºº
Evaluates the BLOCK or EXPR for each element of LIST (locally setting $_ to each element) and composes a list of the results of each such evaluation. Each element of LIST may produce zero, one, or more elements in the generated list, so the number of elements in the generated list may differ from that in LIST. In scalar context, returns the total number of elements so generated. In list context, r
https://github.com/tokuhirom/node-perl/ ããæè¿ãããã°ã©ãã³ã°è¨èªå士ã®å£ãå¾ã ã«ç ´å£ããã¦ããæ°ããã¾ããããããã°ã©ãã³ã°è¨èªä¸ã§å¥ãªããã°ã©ãã³ã°è¨èªãåãããã«ããããç½®ãæãã¦ãã¾ã£ãããããããªé¡ã§ããä»åã¯ãã®ä¸ã¤ãCPAN moduleãnode.jsä¸ã§åããã¨ãããããªãç¡è¶ãªæ°ãããªãããªãããããªã½ããã¦ã§ã¢node-perlãç´¹ä»ãã¾ãã var Perl = require('../index.js').Perl; var perl = new Perl(); perl.use('LWP::UserAgent'); var ua = perl.getClass('LWP::UserAgent').new(); var res = ua.get('http://mixi.jp/'); console.log(res.as_
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}