method to
Documentation for method to
assembled from the following types:
class X::IO::Copy
From X::IO::Copy
(X::IO::Copy) method to
Returns the destination of the failed copy operation
class X::IO::Move
From X::IO::Move
(X::IO::Move) method to
Returns the destination of the failed move operation
class X::IO::Rename
From X::IO::Rename
(X::IO::Rename) method to
Returns the destination of the failed rename operation
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
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.