ç¡æ§ã«å è§å½¢ï¼geohexï¼ã§å°å³ãåãå°½ããã¦ã¿ãããªã£ãã®ã§ãï¼é±éã»ã©åããtwitterã®streamã使ã£ã¦ãã®ä¸é±éã§trendã«ä¸ãã£ã¦ãããããªæµè¡ããã¼ã¯ã¼ããä½ç½®æ å ±ä»ãã§ã¤ã¶ããã¦ãããã®ããã©ãã¯ãã¦DBã«çªã£è¾¼ãã§ã¾ããã ã¡ãªã¿ã«twitterã®streamã§trackããå ´åã¯400wordsããããéçã®ããã§ãã ã§ãããããã®ã¾ã¾googlemapsä¸ã«geohexãå©ç¨ãã¦ãããã³ã°ãã¾ãã ã ãããè¦ã¦ã¿ãã¨ããã³ãã³è¾ºãã¨è¥¿æµ·å²¸ãæ±æµ·å²¸è¾ºããåã¾ã£ã¦ãã¾ããã ä¸å¿ããã¯ãã¼ã¯ã¼ãäºã«è²ãå¤ãã¦ããã®ã§ãããéãåãããªãã®ã§æ¬¡ã«googleearthã«ãããã³ã°ããã¾ããHexTweetMapã£ã¦ããã®ãgooglemapsã®æ¹ã«ãããã³ã°ããæã«ä½¿ã£ãããã¸ã§ã¯ãã§ãark使ã£ããã§models->get('teng') ã¨ããäºã«ãªã£ã¦ã¾ãã
When you need perl, think perl.org Enlightened Perl Organisationã®å¼ã³ãããåãã¦Sebastian Riedelæ°ãPerl 5ãããã¢ã¼ã·ã§ã³ããããã®ãã´ãå¶ä½ãããã¨ã®é¡æ«ãA logo for Perl 5ã«æ²è¼ããã¦ããããã´ã¯ãå°åã®èé£æç«ããããã©ããã«ãã模å£ãããã®ã«ãªã£ã¦ãããGitHubã«ããã¦CC-SAã©ã¤ã»ã³ã¹ã®ãã¨ã§å ¬éããã¦ããã Perlã¯ç»å ´ãã23å¹´ã»ã©çµã£ã¦ãããããã°ã©ãã³ã°è¨èªã¨ãã¦ã¯å¤ããã®ã®ã²ã¨ã¤ã«æ°ããããã¨Sebastian Riedelæ°ãå¤ããã®ãæ¶æãã¦ãæç«ãã¨å¼ã¶ãã¨ãããããæ°ã¯ãããéæã«åã£ã¦é£ç©é£éãçãæãã¦ããæç«ã ã¨èª¬æã種é¡ã¨ãã¦ã¯èé£æç«ã§ãæ ç»ãã¸ã¥ã©ã·ãã¯ãã¼ã¯ããããè¦ããã¨ã§ãããã©ããã«ãæ¡ç¨ãããã¨ã«ããã¨èª¬æãã¦ããã ãããã©ãã
perltidyã便å©ã§ããããªã«ãèããªãã¦ãï¼è¦ãç®ãï¼ããããªã³ã¼ãã«ãªããã¦ããã¾ãã ã§ãæè¿èªãã§ãPerlãã¹ããã©ã¯ãã£ã¹ã«ããããªè¨å®ä¾ãæ¸ãã¦ããã¾ããã perltidy -q -l=78 # Max line width is 78 cols -i=4 # indent level is 4 cols -ci=4 # Continuation indent is 4 cols -vt=2 # Maximal vertical tightness -cti=0 # No extra indentation for closing brackets -pt=1 # Medium parenthesis tightness -bt=1 # Medium brace tightness -sbt=1 # Medium square brace tightness -bbt=
以åã«ãæ¸ãã¾ããããç§ãCPAN Testersã®ä¸è¾ºã®æä¸ä½ã«åå ãã¦ãã¾ãããããããªãã¹ãã®ä¸èº«ãè¦ãã¨ãã¾ã æ°ããTest::Moreã®ç¹è²ããã¹ã¦ä½¿ããã¦ããã¨ã¯è¨ããªãã¨æãã¾ããã Test::Moreã使ãã®ã¯CPANä½è ã®ã¿ãªãããPerlerãªãå¿ é ã®éå ·ã§ããã§ããããæä½å¸¸èã«ä½ç½®ãã¾ããããããæã«ãDavid Goldenæ°ã¯å¾¡èªåã失念ãã¦ãããã®ããã«ã¨ã¼ãã¦ãã¨ãã»ã¤ã¨ããå½¢ãåããªãããããããã¾ãã¨ç¶ºéºã«æ°ããTest::Moreã®ç¹è²ã"Five Test::More features you might not be using yet"ã§èª¬æãã¦ããã¦ãã¾ãã ç§ã¯ä»¥åã«ãæ¸ãããã¨ãããã¾ããããPerlæ¬ä½ãCPANã¢ã¸ã¥ã¼ã«ã®ããã¥ã¡ã³ãããã¦ãã¼ãã®ã¯ä¸å訳ããªãã¨å ¬è¨ãã¾ããããã®çç±ã¯è¨³ããªããã°ãªããªãã»ã©ã®è±èªã§ã¯ãªã(ãããã
Kamakura Perl Mongers ãã¯ãã«ã«ãã¼ã¯ #2 Kamakura Perl Mongers ãã¯ãã«ã«ãã¼ã¯ #2 ã 2012å¹´2æ24æ¥(é) ã«éå¬ãã¾ãã ä»åã¯åéåã®å¤æ°å®¶ãªãã£ã¹ã§ã®éå¬ã å¤æ°å®¶ã®æ§åã¯ãã¡ãã楽ããæãã«è©³ããã§ãã æ¦è¦ 2012/2/24 (é) [1é¨]20:00ã22:00 (19:30éå ´) [2é¨]22:00ã23:00 ä¼å ´ â æå¼æ ªå¼ä¼ç¤¾ å¤æ°å®¶ãªãã£ã¹ âãµãããâ é»æº / WIFIè¨åæ 潤沢ã¨ã¯è¨ããªãã®ã§ãé»æºã¿ãã / ã¢ãã¤ã«ã«ã¼ã¿ã¼ããç¨æããã ããã¨å©ããã¾ã ä¼è²» â 1é¨: ç¡æ, 2é¨: Â¥1,000 å®å¡ â 15å äºåç»é² - http://atnd.org/events/25375 ããã°ã©ã 1é¨ 20:00 â 20:20 ãPerl::ãã¸ã¡ãã·ã¿ã massat 20:20 â
èªåã®è¦æã¨ã㦠sjisã®ãã¡ã¤ã«ãã³ãã³ãã©ã¤ã³ããgrepããã è¤æ°ãã¡ã¤ã«ã«ã¾ããã£ã¦grepããã æ¤ç´¢çµæã«ãã¡ã¤ã«åã¨è¡çªå·ã表示ããã catã§ã¤ãªãã§nkf -wã£ã¦ããã°ã§ãããã©ãã©ã®ãã¡ã¤ã«ãããããªããªã ç·´ç¿ã®ã¤ããã§perlã§æ¸ãã¦ã¿ãããããæéããã£ããä¸è¡æ¸ããã¨ã«ã°ã°ã£ã¦ãæ°ãããã ã½ã¼ã¹ ãã¨ããããã³ãã³ããçµåããã°ã§ããã®ããã ãã©ããã£ã¨ããå¿ããããperlã§ãããªå¦çãæ¸ãã¦ã¿ããæ¸ãããã¨ãã¦ãã£ã¦ãã®ãã¯ç¥ããªãã ~/bin/sgrep ã¨ãã«å®è¡æ¨©éä»ãã¦ç½®ãã¨ãã¦ä½¿ã£ã¦ãã ååãgrepã ãã©ããããªã ããããæ©è½ã¯ç¡ãã§ãã ãæ¤ç´¢ã£ã¦ãã£ããgrepãããªã?ãã¨æã£ã¦å®æã«ä»ããã ãã§ãã 使ããã? ãã¨ãã°ã $ sgrep 'hoge' ã¨ããã°hogeãå«ã¾ããè¡ã®ä¸è¦§ãã«ã¬ã³ããã£ã¬ã¯ããªä»¥ä¸ãã¹ã¦ã®ãã¡ã¤
MIME::Base64 ã使ç¨ã perl v5.12.1 use MIME::Base64; my $image_base64 = '<base64ã¨ã³ã³ã¼ãããç»å'>; # base64å½¢å¼ãããã³ã¼ã my $image_bin = decode_base64($image_base64); # ãã¡ã¤ã«ãéã open $fh, '+>', '/path/to/file' or die "Cannot open : $!"; # ãã¡ã¤ã«ããã¤ããªã¢ã¼ãã« binmode $fh; # æ¸ã込㿠print $fh $image_bin; # ãã¡ã¤ã«ãéãã close $fh;
ãããããããããã£ãã®ã§ã¡ã¢ã ()ã¨[]ã¨{}ã¨\ã®ä½¿ãæ¹ã é å my @var = ( 1, 2, 3 ); print @var[1]; # => 2 é åã®åç § # åç §ãªã®ã§ã¹ã«ã©ã¼ã§åãã my $var = [ 1, 2, 3 ]; # åç §ãªã®ã§ã¢ãã¼ã§èªã¿åºã print $var->[1]; # => 2 ããã¯ãã®æ¸ãæ¹ã¨åã # é åãæ ¼ç´ my @var2 = ( 1, 2, 3 ); # é åã®åç §ãæ ¼ç´ my $var = \@var2; ããã·ã¥ # å®ç¾©ããã¨ãã¯"%" my %var = ( a => 1, b => 2, c => 3 ); # èªã¿åºãã¨ãã¯"$"ã使ã print $var{b}; # => 2 ããã·ã¥ã®åç § # åç §ãªã®ã§ã¹ã«ã©ã¼ã§åãã my $var = { a => 1, b => 2, c => 3 }; # åç §ãª
2010å¹´07æ16æ¥01:15 ã«ãã´ãªæ¸è©/ç»è©/åè©Lightweight Languages perl - O'Reillyã®iPhoneã¢ããªæ¬ããepubãã¶ã£ãã¬ã W00t! ãã£ã600åã§ãªã©ã¤ãªã¼æ¬ãiPadãKindleã§èªãããã¦ãã - ãã®ããã°ã¯è¨¼æã§ããªãã ã¨ããããç´ã®æ¬ã¨æ¯ã¹ã¦ããã»ã©å®ããªããã§ãããiPhoneçã®600åã¯ãã¯ãé åã§ãã大ä¸å¤«ãå®ã¯ãã®ã¢ããªããiPadã§èªããepubãåãåºããã¨ãã§ãããã§ããç¹æ®ãªããã¯ã¨ããããã§ã¯ãªãããªã©ã¤ãªã¼ã®ãµã¤ãã§ãããæ¹ãæ¸ããã¦ãã¾ãã Ebook Bundles - Getting The Most ã¯ã¦ãªããã¯ãã¼ã¯ - samurai20000ã®bookmarkãããããããããã ãããæ¹ãé¢åãªã®ã§èªååãããã¨ãã ããã¾ãããã ã§ãã¾ããã #!/usr/bin/env p
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}