in reply to Re^4: Inlining a "lexically-scoped scalar which has no other references"
in thread Inlining a "lexically-scoped scalar which has no other references"

Since it used to work like you (and me) suggest in 5.6, I suppose some aspects of "constant folding" and/or "reference counting" changed slightly in between.

Maybe due to another bugfix? Who knows...

Anyway, IMHO the docs should be updated to be clearer in this respect.

Cheers Rolf

  • Comment on Re^5: Inlining a "lexically-scoped scalar which has no other references"