2011-07-01ãã1ã¶æéã®è¨äºä¸è¦§
誰å¾ï¼ä¿ºå¾ï¼ãªæããªã®ã§ãããreadpipe(ããã¯ã¯ã©ã¼ãæ¼ç®å)ã®ãªã¼ãã¼ãã¼ãã§æ¸ããããã«ãreadpipe ããªã¼ãã¼ãã¼ãããã¨ãå¼æ°ã®æååãå¤æ°å±éãã¦ãããªãåé¡ãããã®ã§ãä»»æã®å¤æ°ãããæãã«å±éãããã³ãªç©ä½ãä½ã£ã¦ã¿ã¾ãããtsucchâ¦
ããµã¤ãã®Haskellããã°ã©ãã³ã°ãã¨ããæ¬ãèªãã§ãã¾ãããµã¤ãã®Haskellããã°ã©ãã³ã° ãµã¤ãã®ããã°ã©ãã®ããã®é¢æ°åè¨èªå ¥éãã¦ãä»æ¥ã¯2ç« ã®æ®ãã¨æ¼ç¿åé¡ããã£ã¦ã¿ã¾ãããã¾ã㯠head ã§ããããã§å®è£ ããã®ã¯ãæ¨æºå ¥åãããã¦ãå é 10â¦
ããµã¤ãã®Haskellããã°ã©ãã³ã°ãã¨ããæ¬ãèªãã§ãã¾ããåãã Haskell åå¼·ããããªã¼ãã¨æã£ã¦ãã¦ããReal World Haskellãã¨ãããããã°ã©ãã³ã°Haskellãã¨ãè²·ã£ã¦ã¿ã¦ãåå¼·ããã®ã ãã©ãããªãã説æã端æã£ã¦ãªããï¼ãã¿ãããªã¨ãããå¤â¦
ããã¯ã¯ã©ã¼ãæ¼ç®åããªã¼ãã¼ãã¼ããããã¦ãreadpipe ãä¸æ¸ãã¦ã¿ãã®ã§ããããªããå¦ãªåãããã¦ããã¾ãã #!/usr/bin/perl use strict; use warnings; use Data::Dumper; BEGIN { *CORE::GLOBAL::readpipe = sub { warn Dumper(\@_); }; } `ls -lâ¦
çºè¦ããã®ã¯çµæ§åãªã®ã§ãããtwitter ã§ã¤ã¶ããã¦ã(ããã¨ããã)ãããã¾ã(ã£ã¦ãããå ¨ã)åé¿ãªãã£ãã®ã§ãã£ã¡ã«ãæ¸ãã¦ããã¾ããPerl ã§ãã¹ããæ¸ãã¦ããã¨ãã«ãxUnit ã® setUp/tearDown*1ã使ãããå ´åãTest::Classã使ã£ã¦ãã¹ããæ¸ãâ¦