Name
link
Synopsis
link oldfile, newfile
Description
Creates a Unix hard link from a new filename, newfile, to an existing
file, oldfile, on the same filesystem.
The function
returns 1
for success, 0
otherwise (and puts the error code into $!
).
This function is unlikely to be implemented on non-Unix
systems. See also symlink
.
Get Perl in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.