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


Passing Inf for the $length parameter of substr does not work:


> "abcd".substr(2,Inf)
This type cannot unbox to a native integer


Rakudo itself suggests that Inf should work in the following error message:

> "abcd".substr(2,-1)
Length argument to substr out of range. Is: -1, should be in 0..Inf; use *-1 if 
you want to index relative to the end



$ ./perl6 --version
This is perl6 version 2012.09.1 built on parrot 4.4.0 revision RELEASE_4_4_0

Reply via email to