in reply to Tracking down an Lvalue bug?
Hmm, are you sure you want 256x1024**2 in that substr? I think this is increasing the number beyond what you intended , which doesn't matter with substr because you're replacing all that trailing string with one char, but does matter with vec because nothing is cut-off
Adjusted for my machine I run
A perl -e"$x=chr(0);$x x=5*1024**2; <>;$r=\substr($x, 2*1024**2); <>;vec($$r,2*1024**2-1,1)=1; <>"
B perl -e"$x=chr(0);$x x=5*1024**2; <>;$r=\substr($x, 2*1024**2); <>;substr($$r,2*1024**2-1,1)='x'; <>"
And I consistently get results like
| A | B |
|---|---|
7,760 k 7,776 k 10,876 k | 7,760 k 7,776 k 10,880 k |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tracking down an Lvalue bug?
by BrowserUk (Patriarch) on Mar 17, 2012 at 22:07 UTC | |
by ikegami (Patriarch) on Mar 19, 2012 at 23:12 UTC | |
by BrowserUk (Patriarch) on Mar 20, 2012 at 02:27 UTC | |
by ikegami (Patriarch) on Mar 20, 2012 at 03:36 UTC | |
by BrowserUk (Patriarch) on Mar 20, 2012 at 06:10 UTC | |
|