in reply to Re^6: Tracking down an Lvalue bug?
in thread Tracking down an Lvalue bug?
The fix has no effect on:
my $ref; { my $string = "123"; $ref = \substr $string, 1, 1; } ## This was the (IMO false) "bug" scenario.
The fix is for:
{ my $string = "123"; my $ref = \substr $string, 1, 1; }
All the patch does (or is suppose to do) is avoid saving the SV inside of the OP, something that causes $string until the end of the program in the second snippet.
Do you have a way of automating the test so I can use git bisect to find when the behaviour changed (if it did).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Tracking down an Lvalue bug?
by BrowserUk (Patriarch) on Mar 21, 2012 at 01:56 UTC | |
by ikegami (Patriarch) on Mar 21, 2012 at 02:01 UTC | |
by BrowserUk (Patriarch) on Mar 21, 2012 at 02:32 UTC |