BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Update: I spent so long tracking this down that when I discovered the cause I posted before doing the proper checks which show it is fixed in later builds. My apologies.
Any explanations for this?
C:\test>perl $a = chr(0); $a x= 2**31; substr( $a, 0, 2**16 ) =~ tr[\0][\1]; substr( $a, 2**16, 2**16 ) =~ tr[\0][\1]; ^Z substr outside of string at - line 2.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: substr outside of string?
by ikegami (Patriarch) on Jun 16, 2013 at 15:44 UTC | |
by ikegami (Patriarch) on Jun 16, 2013 at 16:04 UTC | |
by BrowserUk (Patriarch) on Jun 16, 2013 at 16:04 UTC | |
by ikegami (Patriarch) on Jun 16, 2013 at 16:08 UTC | |
|
Re: substr outside of string?
by toolic (Bishop) on Jun 16, 2013 at 15:39 UTC | |
by BrowserUk (Patriarch) on Jun 16, 2013 at 16:07 UTC | |
by ikegami (Patriarch) on Jun 16, 2013 at 15:46 UTC | |
by toolic (Bishop) on Jun 16, 2013 at 15:49 UTC | |
by ikegami (Patriarch) on Jun 16, 2013 at 15:58 UTC | |
|
Re: substr outside of string?
by ww (Archbishop) on Jun 16, 2013 at 15:51 UTC |