in reply to Re^3: Use of freed value
in thread Use of freed value
Well I tend to avoid such side effects because of this experience.
hum? We use the side effects of putting the actual scalars on the stack all the time (e.g. $x = 3;). I presume you mean you avoid using writing to the scalar twice in the same statement, and avoid writing to the same scalar twice in the same statement.
The thing is, @a, @a=() doesn't do that, at least not any more than splice(@a) or shift(@a) do, and I'm pretty sure you don't avoid those.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Use of freed value
by LanX (Saint) on Jun 27, 2019 at 22:43 UTC | |
by ikegami (Patriarch) on Jun 28, 2019 at 08:44 UTC | |
by LanX (Saint) on Jun 28, 2019 at 11:28 UTC |