2008å¹´05æ02æ¥04:00 ã«ãã´ãªLightweight Languages Unicode - ä¼¼ãæåå士ã«ãç¨å¿ å¾è ã¯ãã¤ãã³ã§ãªãã¦ãã¤ãã¹è¨å·ã§ãããªã [ã] UTF-8 ã®å ¨è§ãã¤ãã³ã Perl ã®æ£è¦è¡¨ç¾ã«ãããããªãã¦æ©ãã ã§ãå ã®ããã¹ããã¡ã¤ã«ã®å ¨è§ãã¤ãã³ããod -t x1ã ã§è¦ã¦ã¿ãã¨ãef bc 8dãã¨ãe2 88 92ãã®ï¼ç¨®é¡ãæ··ãã£ã¦ãã¾ããã åè ã¯ã\p{Hyphen}ãã«ãããããã®ã§ããå¾è ã¯ãã¡ã ã¾ãåå ã¯åãã£ãã®ã§ãåå¦çã§ãã¤ããªç½®æãã¦è§£æ±ºãã¾ããã ã§ãç´ããããããªã®ãååã®HYPHENã¨MINUS SIGNã§grepããã¨ãããªæãã«ãªãã egrep '(HYPHEN|MINUS SIGN)' /usr/local/lib/perl5/5.10.0/unicore/Name.pl -002DHYPHEN-MI
2008å¹´05æ09æ¥22:00 ã«ãã´ãªæ¸è©/ç»è©/åè©Lightweight Languages ãCã¯ãã¯ããã¯ã - æ¸è© - Unix/Linuxããã°ã©ãã³ã° çè«ã¨å®è·µ ã¢ã¹ãã¼æ¹ãã¢ã¹ãã¼ã¡ãã£ã¢ã¯ã¼ã¯ã¹ã®é´æ¨æ§ããç®æ¬å¾¡ç¤¼ã Unix/Linuxããã°ã©ãã³ã° çè«ã¨å®è·µ Bruce Molay / é·å°¾é«å¼è¨³ Cè¨èªãéãã¦Unix/Linuxã®ä»çµã¿ãå¦ã¹ãè¯èãPerl/Python/Rubyã¯ãã¯ããã¯ã®ã¬ã·ãããã¬ã·ãã並ã¹ã(é 延å¦ç¿ç)ã®ã§ã¯ãªããã¬ã·ãã®é£æ度é ã«ä¸¦ã¹ç´ãã¦ãå®è·µãéãã¦çè«ãå¦ã¶ãã¨ãåºæ¥ãããã«ä»ç«ã¦ã¦ããã æ¬æ¸ãUnix/Linuxããã°ã©ãã³ã°çè«ã¨å®è·µãã§ã¯ã以ä¸ã®ç®æ¬¡ã®ã¨ãããå®éã®Unixã³ãã³ãããåçºæããããã¨ã§ä»çµã¿ãå¦ãã§ããã ç®æ¬¡ - Unix/Linuxããã°ã©ãã³ã° çè«ã¨å®è·µã«ãªãã®ã§Booksãã¼ã¿ãã¼
2008å¹´05æ19æ¥15:00 ã«ãã´ãªLightweight Languages perl - Attribute::Method released as a part of Attribute::Util Hackerthonã®ææç©ãã¨ããããã§ã¯ãªãã®ã§ãããAttribute::Method ã Attribute::Util ã®ä¸é¨ã¨ãã¦ãªãªã¼ã¹ããã®ã§ãå ±ããã¾ãã /lang/perl/Attribte-Util/trunk - CodeRepos::Share - Trac Dan Kogai / Attribue-Util - search.cpan.org ãããããã¨ãåºæ¥ã¾ãã package Lazy; use strict; use warnings; use Attribute::Method qw( $val ); sub new : Method {
2008å¹´05æ22æ¥02:30 ã«ãã´ãªLightweight Languages javascript - String.prototype.tr() released ç¾ä»£ã®JavaScriptã«ã¯perlã®m//ç¸å½ã®String.match()ããs///ç¸å½ã®String.replace()ãåå¨ãã¾ããããªããString.tr()ããªãã£ãã®ã§ä½ãã¾ããã /lang/javascript/String.tr/trunk - CodeRepos::Share - Trac String: tr args: stdout: stderr: ãã£ããã¯ããã¡ãã 404 Blog Not Found:javascript - åæã«æ·»å - textareaã®é«ããèªåèª¿ç¯ var lines = 1; for (var i = 0, l = value.length; i <
2008å¹´05æ26æ¥02:30 ã«ãã´ãªä¸æ¥ä¸è¡ééTips perl - tac ãä¸è¡ã§ ããã£ã¦one-linerã§ã [ã] ãããã®ã¬ã³ã¿ã«ãµã¼ãã« tac ã³ãã³ããå ¥ãã UNIX ç³»ã®ã³ãã³ãã§ãtac ã¨ããã®ãããã便å©ãªã®ã§ãã ããã¯ãã¡ã¤ã«ãå é ãã表示ãã cat ã¨ããã³ãã³ãã®éã§ã ãã¡ã¤ã«ãè¡åä½ã§ã²ã£ããè¿ãã¦æ«å°¾ãã表示ãã¦ãããã®ã§ãã% perl -e 'print reverse <>' ãã ãããã®ããæ¹ã¯ä¸ç«¯ã¡ã¢ãªã¼ã«å ¨ãã¡ã¤ã«ãèªã¿è¾¼ãã®ã§éå¹çã¨ããã°éå¹çã以ä¸ã®ããã«ããã°ããå°ãå¹ççã«ãªãã¾ããã #!/usr/local/bin/perl use strict; use warnings; @ARGV or die "$0 [files...]"; for my $filename ( reverse @ARGV ) { o
2008å¹´05æ30æ¥17:15 ã«ãã´ãªLightweight Languages javascript - String.prototype.quotemeta() ãããã°ãããããã? æ©ã話ãPerlã«ãããquotemetaãããã°OKãã¨ã æååããæ£è¦è¡¨ç¾ãçæããã¨ãã®ã¡ã¢ - ITæ¦è¨ ã¨ããæãã§ãããã¯ã¹ã©ãã·ã¥ããã£ã±ãæ¸ããªããã°ãããªãã®ã§perldoc -f quotemeta quotemeta Returns the value of EXPR with all non-"word" characters backslashed. (That is, all characters not matching /[A-Za-z_0-9]/ will be preceded by a backslash in the returned string, reg
2008å¹´05æ31æ¥00:30 ã«ãã´ãªLightweight Languages perl - glob,readdir, and regexp ãªããªãè¯ãä»äºããã¦ããã¦ããid:perlcodesampleã ããä»åã®ãã®ã¿ã¤ãã«ã¯ã©ããã¨æãã ã«ã¬ã³ããã£ã¬ã¯ããªã®ãã¡ã¤ã«ä¸è¦§ãåå¾ããããglob - ãµã³ãã«ã³ã¼ãã«ãã Perl å ¥é ã¨ããã®ããglob()ã§å¾ãããã®ã¯ã«ã¬ã³ããã£ã¬ã¯ããªã®ãã¡ã¤ã«ä¸è¦§ã¨ã¯éããªãããä½ãããã¡ã¤ã«ä¸è¦§ãåãã«ã¯readdir()ã¨ããé¢æ°ãå¥ã«åå¨ããããã ã ä¾ãã°ã以ä¸ã®ããã«ããå ´åãå¾ãããã®ã¯ã«ã¬ã³ããã£ã¬ã¯ããªã§ã¯ãªãã«ã¼ããã£ã¬ã¯ããªã«ãããã¡ã¤ã«ä¸è¦§ã ã [codepad] print "$_\n" for </*> glob("*")ã¾ãã¯<*>ã¯ã以ä¸ã¨ã»ã¼ç価ã§ããã [codepad] my @files
2008å¹´06æ02æ¥02:30 ã«ãã´ãªLightweight Languages perl - Scalar::Lazy released! Scalar::Lazyã¨ããã¢ã¸ã¥ã¼ã«ãããããã®ã§ãå ±ããã¾ãã /lang/perl/Scalar-Lazy/trunk - CodeRepos::Share - Trac Dan Kogai / Scalar::Lazy - search.cpan.org ã©ããªã¢ã¸ã¥ã¼ã«ãã¨ããã¨ãé 延è©ä¾¡ãããç°¡åã«æ±ããããã«ãã¾ãã use Scalar::Lazy; my $scalar = lazy { 1 }; print $scalar; # 1; # Y-combinator made easy my $zm = sub { my $f = shift; sub { my $x = shift; lazy { $f->($x->($x)
以åãã·ã«ã¯ãã½ã¬ã¤ã¦ã«å¦ã¶ããã¯ãªã¨ã£ãã£ããã£ããçã¿åºãçµç¹ã®ç§å¯ã§ãç´¹ä»ãã¾ããããã»ã¼æ¥ã®ã·ã«ã¯ãã½ã¬ã¤ã¦ã®ä»£è¡¨ã®ä¸äººãã¸ã«ã»ãµã³ã¯ãã¯ã®ã¤ã³ã¿ãã¥ã¼ï¼ã»ã¼æ¥åã¤ãã¤æ°è - ã·ã«ã¯ã»ãã¥ã»ã½ã¬ã¤ã¦ããã®æå¾ ç¶ ï¼ã®ä¸ã§ããããªè¨èãããã¾ããã æããªããã°ãããã¯ããã§ããã¨ãããã¨ã§ãããã°ãããã·ã§ã¼ãã¤ãããããããã«ã¯ããã°ãããã·ã§ã¼ã«ãªããã ã¨ãããã¨ãæ¬å½ã«ä¿¡ããªããã°ããã¾ãããä¿¡ãã¦ããªã人ã«ã¯èª°ã説å¾ããã¾ãããããã¦ãä¿¡ããã¨ãæããªããªãã¾ã.ããã£ã¦ã奥深ãè¨èã ã¨æãã¾ãããï¼ ç§ã«ãè¦æãªãã¨ãããã¾ãæ°ä¹ãããªãäºãæ£ç´ãããã¤ãããã¾ãããã®è¦æãªäºããããããªãäºããç®æ¨éæã®çºã«é¿ããäºãã§ããã°è¯ãã®ã§ãããã©ããã¦ããããªãã¨ãããªãæãããã¾ããæè¿ããããªæããã®è¨èãèªã¿è¿ãã¦ãã¾ãã è¦æãªäºãæ°ä¹ãããªãäºã®å¤ãã¯èªåã®å¿ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}