target
ErrorsCollection

target

Synthesised documentation from type/X/Numeric/Real type/X/Mixin/NotComposable type/Match type/X/Temporal/InvalidFormat type/X/IO/Symlink type/X/IO/Link

From type/X/Numeric/Real

See Original text in context

method target()

Returns the type to which the coercion was attempted.

From type/X/Mixin/NotComposable

See Original text in context

method target()

Returns the target of the failed mixin operation.

From type/Match

See Original text in context

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␤»

From type/X/Temporal/InvalidFormat

See Original text in context

Returns the target type (Date in the example above)

From type/X/IO/Symlink

See Original text in context

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

From type/X/IO/Link

See Original text in context

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