# New Ticket Created by Jerry Gay # Please include the string: [perl #41749] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41749 >
from src/ops/string.ops: =item B<substr_r>(out STR, in STR, in INT, in INT) Make $1 refer to the given part of $2, basically like above, but it is reusing the given destination string and doesn't care if the source string is changed later. This I<is changed> includes also GC runs, which will move the referenced string. This also means that $1 has to be reset before any GC may happen. This opcode should really be just used to quickly refer to a substring of another part, e.g. for printing and is a temporary hack. B<Handle with care> =cut either move this to experimental.ops, or remove it entirely. i vote to remove it. we don't need temporary hacks as core ops. ~jerry