in reply to Re: substr outside of string?
in thread substr outside of string? (Updated: Fixed in later builds.)
$a x= 2**31; creates an empty string,
Look again:
C:\test>perl $a = chr(0); $a x= 2**31; print length $a; substr( $a, 0, 2**16 ) =~ tr[\0][\1]; substr( $a, 2**16, 2**16 ) =~ tr[\0][\1]; ^Z substr outside of string at - line 3. 2147483648
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: substr outside of string?
by ikegami (Patriarch) on Jun 16, 2013 at 16:08 UTC |