Documentation for method target assembled from the following pages:

Class: X::IO::Link §

From X::IO::Link

(X::IO::Link) method target §

Returns the name of the link target, i.e. the existing file.

Class: X::IO::Symlink §

From X::IO::Symlink

(X::IO::Symlink) method target §

Returns the path that symlink failed to create a link to.

Class: X::Mixin::NotComposable §

From X::Mixin::NotComposable

(X::Mixin::NotComposable) method target §

method target()

Returns the target of the failed mixin operation.

Class: X::Numeric::Real §

From X::Numeric::Real

(X::Numeric::Real) method target §

method target()

Returns the type to which the coercion was attempted.

Class: X::Temporal::InvalidFormat §

From X::Temporal::InvalidFormat

(X::Temporal::InvalidFormat) method target §

Returns the target type (Date in the example above)

Class: Match §

From Match

(Match) method target §

method target()

Returns a string representation of the object against which the regex matches. This is the value that the regex engine works with internally.

my $a = "þor" ~~ /o/;
say $a.target # OUTPUT: «þor␤»