in reply to Re: What's going on with either constants folding or B::Deparse output in this case? (updated)
in thread What's going on with either constants folding or B::Deparse output in this case?
I understand (at least I think so) why my 1st command line (your "Case 2") dies. I also understand there's no "one-to-one correspondence" between source and B::Deparse'd output (e.g. or die vs die unless). But, then I don't understand why constant folding doesn't work as expected.
About Devel::Peek output, I see there are Readonly flags in "Case 2" but not in "Case 1". Is that the reason for demonstrated behavior? Can I count on this 'fix' (e.g. prepending an empty string) to parse a hard-coded string several times, if a 3d party module uses similar (as shown) mechanism for parsing? (maybe I'm asking too much here)
Update. ... So, answering my last question, better not to count on this behavior, but "add more lines of code" such as dummy variable
Update 2. Deleted, from update above, what was probably speculation and wishful thinking. Still unclear, what's going on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What's going on with either constants folding or B::Deparse output in this case?
by haukex (Archbishop) on Feb 25, 2017 at 17:13 UTC |