programming-examples/perl/Statement/Range Operator.pl

10 lines
143 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
print 0 .. 10,"\n";
@alpha=('A' .. 'Z');
print "@alpha";'
@a=('a'..'z', 'A'..'Z');
print "@a\n";'
@n=( -5 .. 20 );
print "@n\n";'