In IO::Path§
See primary documentation in context for routine link.
method link(IO::Path:D $target: IO() $link --> Bool:D) sub link( IO() $target, IO() $link --> Bool:D)
Create a new hard link $link to existing $target. Returns True on success; fails with X::IO::Link if the hard link could not be created. To create a symbolic link, see symlink.