ã¡ãã£ã¨åã« Carton ããã¼ã¸ã§ã³ 1.0 ããªãªã¼ã¹ã¨ãªãã plenv ã cpanm ããçµã¿åããã Perl ã®ç°å¢æ§ç¯ã¯ãã²ã¨æåã®ããã¨æ¯ã¹ã¦ããã¶ãç°¡åã«ãªãã¾ããã æ話ãããã¤ããã¯ãªãã®ã§ããã大éã®ã¢ã¸ã¥ã¼ã«ã使ã£ããããã¯ãããããã¤ããã¨ããªã©ã perl Makefile.PL; make; make install ã®å®åæãããã¯ããè ±éçã«ãªãã»ã©ã¿ã¤ããç¶ãã¦ã¯ãããã ãã§åæ¥ã¤ã¶ãäºãã¾ã¾ãã£ããããã¾ããããã®ã³ãã³ãã»ã»ãããã¿ã¤ããã大ä¼ããã£ããªãããã¶ãã¯ããããä¸ä½ã«å ¥è³ããäºã§ãããã ã ããããããªãã¨ã«ãªãåã«ããã®ãããªã«ã¼ãã³ã»ã¯ã¼ã¯ã¯ãããã»ã¹ã¯ãªãããçµãã§ãããªãããã°ããã£ãã®ã§ãããââå®éãããä½ã£ãäºãããã¾ããããéçºä¸ã«ãããããªã¢ã¸ã¥ã¼ã«ã試ããããã¦ããä¸ã§ããããããæçµçã«ã©ã®ã¢ã¸ã¥ã¼ã«ï¼ã¨ããã®
ç®æ¬¡ æ¦è¦ è¨å® port install ã³ãã³ããä½ã cpan install è¨å®ãã¡ã¤ã« ã³ãã³ãã®å®ä¾ é常æ¤ç´¢ æ¤ç´¢å¯¾è±¡ããå¤ã å ¨é¨æ¤ç´¢ Pageræå® ãã¡ã¤ã«ã¿ã¤ãæå® å¤§å°æååºå¥ãªã ãã¡ã¤ã«æ¤ç´¢ ãã¡ã¤ã«ãã¹åã®æ£è¦è¡¨ç¾æå® ãã¡ã¤ã«ãã¹+ãã¡ã¤ã«åã®æ£è¦è¡¨ç¾æå® å®å ¨ä¸è´æ¤ç´¢ æå®åèªã®åå¾è¡åºå ä¸è´ãããã¡ã¤ã«åãåºå åèµ·çã«æ¤ç´¢ããªã groupæå®ãå¤ã æ¤ç´¢å¯¾è±¡ããç¹å®ãã£ã¬ã¯ããªãå¤ã ç«ãã£ã©è¡¨ç¤º ããã©ã«ãæå®? æ¦è¦ ackã³ãã³ã ã½ã¼ã¹ã³ã¼ãæ¤ç´¢ã¯grepãæåã ããããå¼·åãªãã¼ã«ã¨è¨ãããackã試ãã¦ã¿ãã grepããå¦çãæ©ãã(è¨å®ãã¡ã¤ã«ãªã©ç¡è¦) grepããææ³ãçãã¦æ¸ãã grepã¨ææ³ãä¼¼ã¦ããã grepã®æ©è½ãã»ã¨ãã©ä½¿ãã¦ãfindã®è¦ç´ ãæã¤ã Perlã§æ¸ããã¦ãã¦windowsã§ãåãã Perlã®æ£è¦
AnyEventã®ç·´ç¿ããã¦ã¿ããã£ã¦ãã§ãã¨ããããtail -fã½ãã®ãæ¸ãã¦ã¿ãããããªãã§ãããã ãããâ¦â¦ãããããããªãã #!/usr/bin/env perl use strict; use warnings; use AnyEvent; use AnyEvent::Handle; $| = 1; my $file = shift or die qq{usage: $0 filename}; open my $fh, '<', $file or die qq{can't open file: $file}; my $cv = AE::cv; my $handle = create_handle(); sub create_handle { new AnyEvent::Handle fh => $fh, on_error => sub { my ($handle, $fata
OrePANçãªããæ¹ã§ã¢ã¸ã¥ã¼ã«ç®¡çãã¦ããããã¸ã§ã¯ãã®cartonåãé²ãã¦ããã®ã§ãé²æãã¡ã¢ãã¦ã¿ãã æ´åæ§ãåããã¾ã§carton installãé²ãã ç¾ç¶ã®ã¢ã¸ã¥ã¼ã«ã®ãã¼ã¸ã§ã³ãå®å ¨ã«åºå®ããã¾ã¾ã§ãcarton installããããã¾ããã¾ãè¡ããªãã£ããããã¸ã§ã¯ãã«ã¯ãã¹ããããªãããã®ã§ãã¾ãå ¨é¨ãã¼ã¸ã§ã³ä¸ãã£ã¦ãè¯ãã¨ãã¦ãcarton installããããã¹ããèµ°ããã¦ã¿ã¦ããã¼ã¸ã§ã³ãåºå®ããªãã¨åããªããããªã¢ã¸ã¥ã¼ã«ã¯cpanfileã«è¨è¿°ãã¦ãã£ãã $ carton install $ # ãªããããããã£ããcpanfileãç·¨é $ carton installãcpanfileã«ã¯ä»¥ä¸ã®æ§ãªå½¢ã§ã¢ã¸ã¥ã¼ã«ãåºå®ãã¦ãã£ãã requires 'HTTP::Message' => '<= 6.02';ãã¾ãinstallãçµãã£ãå¾ã¯c
BENCHMARK(count,expr) BENCHMARK() é¢æ°ã¯ãå¼ expr ã count ã®åæ°ã ãç¹°ãè¿ãå®è¡ãã¾ãã MySQL ã«ããå¼ã®å¦çé度ãè¨æ¸¬ããéã«ä½¿ç¨ãããå ´åãããã¾ãã NULL ãè² ã®ç¹°è¿ãåæ°ãªã©ã®ä¸é©åãªå¼æ°ã®å ´åãçµæå¤ã¯ 0 ã¾ã㯠NULL ã§ãã ãã®ä½¿ç¨ç®çã¯ãmysql ã¯ã©ã¤ã¢ã³ãå ãããã¯ã¨ãªã¼ã®å®è¡æéãã¬ãã¼ããããã¨ã§ãã mysql> SELECT BENCHMARK(1000000,AES_ENCRYPT('hello','goodbye')); +---------------------------------------------------+ | BENCHMARK(1000000,AES_ENCRYPT('hello','goodbye')) | +-----------------------------
MySQL ãã¼ã¿ãã¼ã¹ãããã¼ã¿ãåå¾ããã¨ãããªãã»ããï¼LIMITï¼ãå©ç¨ããå ´åãå¤ãã¨æããåæã«ãæ¡ä»¶ã«åè´ãããã¼ã¿ã®ä»¶æ°ãç¥ãããå ´åãå¤ãã ããããã®ãããªæããã®ãããªã¯ã¨ãªãæããã°è¯ãã®ã ãããï¼ ã»ãã¼ã¿åå¾ SELECT * FROM table WHERE field = 5 LIMIT 0, 10 ã»ä»¶æ°åå¾ SELECT COUNT(*) FROM table WHERE field = 5; LIMIT ãå©ç¨ãã¦ãã¼ã¿ãåå¾ããå¾ãå¥é COUNT() é¢æ°ãå©ç¨ããã¯ã¨ãªãæããäºã«ãããåè´ãããã¼ã¿ã®ä»¶æ°ãç¥ããã¨ãåºæ¥ãããã®ãããªåç´ãªã¯ã¨ãªã®å ´åãåå¥ãããããå¤æ°ã«æ ¼ç´ãã¦ããã°ãç¹ã«ä»¶æ°åå¾ç¨ã®ã¯ã¨ãªæçæãé¢åã«ãªããã¨ã¯ç¡ãã ããã $select_data = 'SELECT '. ' * '; $select_count = '
perlbrew 使ã£ã¦ããã ãã©ãtokuhirom ãã¤ãã£ã¦ã plenv ã«ã¹ã¤ããããã perlbrew ããã·ã³ãã«ã§ãªã«ãã£ã¦ãããããã®ããªã«ããã ã¨ããã perlbrew ãããåãããªãããã¨ãã話ãããã plenv ã ã¨ããã« .perl-version ã¨ãããã¡ã¤ã«ã« perl ã®ãã¼ã¸ã§ã³ãããã¦ããã¨ããã®ãã£ã¬ã¯ããªä»¥ä¸ã§ã¯èªåçã«ãã®ãã¼ã¸ã§ã³ã® perl ã使ãããã¨ããæ©è½ããã£ã¦ããããã ãã¶ã¯ãã©ãã perlbrew ã§å ¥ããå種 perl 㯠-g ã¤ãããã㦠SEGV ããã¨ããã¾ã£ã¦ã¦å¥é --as=5.14.2-debug ã¿ããã®ãã¤ãã£ã¦ããã©ã ãã®çµé¨ãçããã¦ä»åº¦ã¯æåãã $ plenv install 5.14.2 -D=DEBUGGING=-g ãªæãã§å ¨é¨å ¥ããããã«ãããã¡ãªã¿ã«ãã® install ãªãã·ã§
ãã®åã Module++ãããµãï¼ http://module-pp.moznion.net/ ã㦠metacpan ã«ã¯ã¢ã¸ã¥ã¼ã«ã«++ã§ãã *1 æ©è½ããã£ã¦ã ãããããæãã«ä¾¿å©ãªãã§ãã (ãªããªãã¢ã¸ã¥ã¼ã«ãè©ä¾¡ããéã®å¤æåºæºã®1ã¤ã«ãªããã)ã æ®å¿µãªãã¨ã«ã誰ã++ãããããç¥ãããã«ã¯APIãå©ããªããã°ãªãã¾ããã ãã®ã誰ã++ãããæ å ±ããæã£ã¦ããçºã«ã¯ã¾ã API ã1åå©ãã¦ã ããã®ã¢ã¸ã¥ã¼ã«ã«++ããã¦ã¼ã¶ã¼ã®ä¸è¦§ããå¼ã£å¼µã£ã¦ãã¾ã *2ã ãã®ã¦ã¼ã¶ã¼ã®ä¸è¦§ã«å«ã¾ãã¦ããã¦ã¼ã¶ã¼ã® ID æ å ±ã¯ããã·ã¥åããã¦ããã®ã§ã æ´ã«ã¦ã¼ã¶ã¼ã®æ°ã¶ãã ã API ãå©ãã¦ãããã·ã¥åãããæ å ±ãã å®éã® ID ãã²ãã¦ããå¿ è¦ãããã¾ãã é£ããå¦çã§ã¯ç¡ããã§ãããæ¸ãã¦ã¿ãã¨å°å³ã«é¢åãããã ãã®ã誰ã++ããããã¨ããæ å ±ã¯ãåã¯éè¦ã ã¨æã£
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}