Documentation for method link

Documentation for method link, assembled from the following types:

class IO::Path

From IO::Path

Defined as:

method link(IO::Path:D $target: IO() $link --> Bool:D)
sub    link(      IO() $targetIO() $link --> Bool:D)

Create a new hard link $link to existing $target. Returns True on success; fails with X::IO::Link if the symbolic link could not be created. To create a symbolic link, see symlink.