method to

Documentation for method to assembled from the following types:

class List

From List

(List) 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.

class Match

From Match

(Match) method to

Returns the index of the end position of the match.

class X::IO::Copy

From X::IO::Copy

(X::IO::Copy) method to

Returns the destination of the failed copy operation

class X::IO::Rename

From X::IO::Rename

(X::IO::Rename) method to

Returns the destination of the failed rename operation

class X::IO::Move

From X::IO::Move

(X::IO::Move) method to

Returns the destination of the failed move operation