in reply to Re^4: Repeat question (redo)
in thread Repeat question

that was exactly one the "more perlish ways" I was referencing. I would have done it that way for myself, but I thought the explicit swap was more concrete for the OP to understand what was going on.

Replies are listed 'Best First'.
Re^6: Repeat question (redo)
by Laurent_R (Canon) on Nov 30, 2018 at 22:24 UTC
    Yeah, I guess I missed the last sentence of your previous post when I first read it. I might not have reacted if I had seen it.

    Still, I think it was useful to show this other way of swapping values without using a temporary variable.