to
ErrorsCollection

to

Synthesised documentation from type/X/IO/Move type/Match type/X/IO/Copy type/X/IO/Rename type/List

From type/X/IO/Move

See Original text in context

Returns the destination of the failed move operation

From type/Match

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.

From type/X/IO/Copy

See Original text in context

Returns the destination of the failed copy operation

From type/X/IO/Rename

See Original text in context

Returns the destination of the failed rename operation

From type/List

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.