programming-examples/perl/Statement/Two ranges.pl

9 lines
148 B
Perl
Raw Normal View History

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