in reply to Re: Emptying (and refilling) an array.
in thread Emptying (and refilling) an array.

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

  • Comment on Re^2: Emptying (and refilling) an array.

Replies are listed 'Best First'.
Re^3: Emptying (and refilling) an array.
by JavaFan (Canon) on Jan 12, 2009 at 15:57 UTC
    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 ;-))

Re^3: Emptying (and refilling) an array.
by massa (Hermit) on Jan 12, 2009 at 16:01 UTC
    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 (κς,πμ,πλ)