Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
1.8ã®å ´å % cat /tmp/test.txt|ruby -Ku -e 'p STDIN.read.split(//).size' 92 1.8ã®å ´åã¯æ¥æ¬èªãå«ãå ´åã¯-Kuãªã©ã¨ãã¦ã ã¨ã³ã³ã¼ãã£ã³ã°ãæå®ãã¦ã æåæ°ãã«ã¦ã³ãããå ´åã¯split(//)ã¨ãã£ã¦æ£è¦è¡¨ç¾ã使ã£ã¦ ã«ã¦ã³ãããã¨ããããããã¦ãã¦ãå¿ è¦ 1.9ã®å ´å % cat /tmp/test.txt|ruby19 -e 'p STDIN.read.size' 92 1.9ã®å ´åã¯ç°å¢å¤æ°LANGãè¦ã¦ãèªåçã«ã¨ã³ã³ã¼ãã£ã³ã°ãã»ãããããã®ã§ test.txtã¨LANGã®ã¨ã³ã³ã¼ãã£ã³ã°ãåãå ´åã¯çç¥ã readããæã¯ãã®ã¨ã³ã³ã¼ãã£ã³ã°ãã»ãããããã String#sizeã§ã¯ãã¤ãæ°ã§ã¯ãªããæåæ°ãåºã¦ããã ãã¿ã³ãæ¼ãããã©ãä½ãåå¿ããªãããã°ã©ã ã ï¼Hello Worldã ã¨æã£
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}