In Match§

See primary documentation in context for method to

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.

In List§

See primary documentation in context for method to

"abc123def" ~~ m:g/\d/;
say $/.to# OUTPUT: «6␤»

Assumes the List contains Match objects, 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.

In X::IO::Rename§

See primary documentation in context for method to

Returns the destination of the failed rename operation

In X::IO::Copy§

See primary documentation in context for method to

Returns the destination of the failed copy operation

In X::IO::Move§

See primary documentation in context for method to

Returns the destination of the failed move operation