See Original text in context
Returns the destination of the failed move operation
See Original text in context
method to()
Returns the index of the position next to the end of the match. It will return the match position if the end of the match is negative, and Nil
if there has been no match.
See Original text in context
Returns the destination of the failed copy operation
See Original text in context
Returns the destination of the failed rename operation
See Original text in context
"abc123def" ~~ m:g/\d/;say $/.to; # OUTPUT: «6»
Assumes the List
contains Match, such as the $/
variable being a List
, when using :g
modifier in regexes. Returns the value of .to
called on the last element of the list.