1
2
3
4
5
6
7
8
9
10
11
12
~/devel/Perl/snippets$ cat three_dots.pl
use strict;
use warnings;
my @arr = 1 ... 10;
print "@arr";
~/devel/Perl/snippets$ perl -MO=Deparse three_dots.pl
use strict;
use warnings;
my(@arr) = 1..10;
print join($", @arr);
three_dots.pl syntax OK
QuoteIf you don't want it to test the right operand until the next evaluation, as in sed, just use three dots ("...") instead of two. In all other regards, "..." behaves just like ".." does.