Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: substr outside of string?

by ww (Bishop)
on Jun 16, 2013 at 15:51 UTC ( #1039219=note: print w/ replies, xml ) Need Help??


in reply to substr outside of string? (Updated: Fixed in later builds.)

C:\>perl -E "use warnings;$a = chr(0); $a x= 2**31; substr( $a, 0, 2**16 ) =~ tr[\0][\1]; substr( $a, 2**16, 2**16 ) =~ tr[\0][\1];" substr outside of string at -e line 1. Use of uninitialized value in transliteration (tr///) at -e line 1.
... and, neither "uninit" nor "outside string" appears for any value less than $a x= 2**31 with AS 5.16.

If you didn't program your executable by toggling in binary, it wasn't really programming!


Comment on Re: substr outside of string?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039219]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2014-07-30 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls