YAPCãå§ã¾ãã¾ãããã å»å¹´ã¯åå ããã®ã§ããï¼è´è¡ã®æ¹ã§ããï¼ãä»å¹´ã¯é常ã«ã¨ã¦ã¤ããªãæ®å¿µãªäºã«åå ã§ãã¾ããã ã§ãæ°åã ãã§ãã²ããããã®ã§Perlã®ã話ãå°ã
ã Rubyã«åãã£ããããã¯ã¨ããæ¦å¿µ Rubyã¯è¨èªèªä½ã«é«éé¢æ°ããããã¯ã¨ããå½¢ã§ãã£ã¦ããã eachãªã©ã§ä½¿ããã¦ããã®ã¯æåã§ãã ä¾ï¼ array = [1,3,5,9] array.each{|i| puts i} eachã«ä¸ãã¦ãã { }ã®é¨åããããã¯ã§ãã èªåã§ãããã¯ãåãåãé¢æ°ãä½ããããã° yield ã使ãã°ããã§ãããã ä»åã®ã話ã®å
容ã¯ãPerlã§ããããã¯ã渡ãããã¨ãããã¨ãªã®ã§ã eachã®æ©è½, yieldã®æ©è½ã¯ç¥ã£ã¦ããããã¨ããåæã§å
ã«ããã¿ããã¨æãã¾ãã Perlã®ãããã¯ã使ã£ãä¾ ããã§ã¯Rubyã®è©±ã¯ãããããã«ãã¦Perlã®è©±ã«ã¾ããã¾ãããã ã¾
{{#tags}}- {{label}}
{{/tags}}