広告
foreach( … )は配列の各要素に対して処理を行う関数です。
@lngX = ( 11, 22, 33, 44 ); foreach $i (@lngX) { print "$i\n"; }
https://www.7key.jp/program/perl/foreach.html