# New Ticket Created by  Timothy Smith 
# Please include the string:  [perl #114526]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114526 >


I expect substr-rw to handle end  positions that are out of range,
just like substr() itself does. However, it throws an error:

> my $p = 'ab'; substr-rw($p, 0, 3) = '/'; say ":::$p:::";
Start of substr out of range. Is: 3, should be in 0..2

Reply via email to