programming-examples/perl/Statement/range list and for loop.pl

8 lines
130 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!c:/perl/bin
@months=(1..12);
for($loopcount=0; $loopcount<13; $loopcount++)
{
print "@months[$loopcount] \n";
}