link oldfile, newfile
- 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
.