Tag: perl

  • Why are `1…2` and `1….2` not syntax errors?

    Why are `1…2` and `1….2` not syntax errors?

    6 use 5.016; use warnings "all"; use Data::Dumper; my @abc = (1, 2, 3); my @bbb = @abc[1..2]; my @ccc = @abc[1…2]; my @ddd = @abc[1….2]; say Dumper "@bbb"; # output: ‘2 3’ say Dumper "@ccc"; # output: ‘2 3’ say Dumper "@ddd"; # output: ” Why is there no syntax error in code above?…