% irb
ruby-1.9.2-p290 :001 > [2.4]
=> [2.4]
ruby-1.9.2-p290 :002 > [2..4]
=> [2..4]
ruby-1.9.2-p290 :003 > [2...4]
=> [2...4]
ruby-1.9.2-p290 :004 > [2....4]
SyntaxError: (irb):4: no .<digit> floating literal anymore; put 0 before dot
[2....4]
^
(irb):4: syntax error, unexpected '.'
[2....4]
^
% re.pl
$ [2.4]
$ARRAY1 = [ 2.4 ];
$ [2..4]
$ARRAY1 = [
2,
3,
4
];
$ [2...4]
$ARRAY1 = [
2,
3,
4
];
$ [2....4]
$ARRAY1 = [];
$ [2.....4]
Compile error: syntax error at (eval 309) line 5, near "....."
BEGIN not safe after errors--compilation aborted at (eval 309) line 5.