広告
while … は、… が真のあいだ {…} を繰り返します。
$lngX = 1; while ($lngX <= 5) { print "$lngX\n"; $lngX++; }
https://www.7key.jp/program/perl/while.html