in reply to Emptying (and refilling) an array.

I wonder, why 0...100, and not 0..100.

Replies are listed 'Best First'.
Re^2: Emptying (and refilling) an array.
by DStaal (Chaplain) on Jan 12, 2009 at 15:46 UTC

    Mostly because I like the looks of it better. The difference in this case is immaterial. (One element.)

      Maybe you shouldn't use ... as you seem to be thinking it behaves different from .., when it doesn't.

      ... is only different from .. in scalar context. (Or, if you want to be a doc lawyer, you could point out that perlop doesn't actually define the behaviour of ... in list context - but in such a case, you shouldn't use it either ;-))

      The difference is not immaterial, it's non-existant. (the one-element difference is only when ... is used as the "range" flip-flop operator)
      []s, HTH, Massa (κς,πμ,πλ)