ããã·ã¥ã«å¤ãæ¯ãåããæã®ã³ã¼ã ä¾ãã°CSVãªãã¡ã¤ã«ãèªã¿è¾¼ãã§ããããããã·ã¥ã®ä¸ã«å±éãæ ¼ç´ã¨è¨ã£ãæãã®åä½ãPerlã§è¡ãããã£ãã¨ãã¾ããä¾ãã° 1,2,3 ã¨è¨ã£ãè¡ã my %hash = ( 'col1' => 1, 'col2' => 2, 'col3' => 3 ); ã®ãããªããã·ã¥ã«å±éããé¢æ°ã欲ããããã§ããçããã¯ãããã©ããã風ã«å®è£ ãã¾ããï¼ã±ã£ã¨æãã¤ãã®ã¯forã«ã¼ãã§ããã my @colums = ('a', 'b', 'c'); my @values = (1, 2, 3); # ãã¡ããå®éã«ã¯split(/,/, $line)ã¨ããCSVãã¼ãµã¼ã使ã my %h; for (0..$#columns) { $h{ $columns[$_] } = $values[$_]; } å®ã¯ãã®ãããªCã£ã½ãæ¸ãæ¹ã¯Perlã§ã¯å¤§æ¦é ãã§ããD
{{#tags}}- {{label}}
{{/tags}}