Indeed, I'm not sure what I was smoking. On 2017-01-20 21:27:50, sml...@gmail.com wrote: > > It numifies ranges so that the number of elements is used. In other > > words, 1..2 > > works like 2 and 1..1 works like 1. > > No, if it worked like that then the first two examples would throw the > same error as the third, instead of exhibiting behaviors that are both > different from that and from each other. > > Here are two more examples, showing the difference in case of an > actual arithmetic series: > > ➜ say 1..1, 3 ... 7; > (1..1 3 4 5 6 7) > > ➜ say 1, 3 ... 7; > (1 3 5 7)
[perl #130604] [PARSER] Weirdness when mixing `..` and `...` without parens
Aleks-Daniel Jakimenko-Aleksejev via RT Sat, 26 Aug 2017 08:02:08 -0700
- [perl #130604] [PARSER] Weirdness ... Sam S. via RT
- [perl #130604] [PARSER] Weird... Aleks-Daniel Jakimenko-Aleksejev via RT
- [perl #130604] [PARSER] Weird... Aleks-Daniel Jakimenko-Aleksejev via RT
- [perl #130604] [PARSER] Weird... Brian S. Julin via RT