in reply to Re^4: Use of freed value
in thread Use of freed value

> I'm pretty sure you don't avoid those.

I rarely chain statements having side effects with the coma operator.

Only exception are one liners.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^6: Use of freed value
by ikegami (Patriarch) on Jun 28, 2019 at 08:44 UTC

    In that case, to put it in your words, the purposes of my posts was to explain (to those interested) why one suffers after crossing the red line in this situation.

    That said, the reason one suffers in this situation is completely different than the reason one suffers with call(++$x, ++$x).

      I don't doubt that the mechanisms are different.

      I think it's just badly tested design because it's "uncharted area" nearly nobody enters.

      Which could also be considered a "reason".

      It's worth noting that some languages are side effect free by design.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice