Documentation for method link

Documentation for method link, assembled from the following types:

class IO::Path

From IO::Path

method link(IO::Path:D: Str $name --> Bool)
sub    link(Str $targetStr $name --> Bool)

Create a new link named as $target (or the name of the invocant in the method form) to the existing file named $name.

Both forms will return True on success or fail with X::IO::Link if the link operation could not be performed.