February 2012
Intermediate to advanced
1184 pages
37h 17m
English
symlinkOLDNAME,NEWNAME
This function creates a new filename symbolically linked to the
old filename. The function returns true for success, and false
otherwise. On systems that don’t support symbolic links, it raises an
exception at runtime. To check for that, use eval to trap the potential error:
$can_symlink = eval { symlink("",""); 1 };Or use the Config module. Be careful if you supply a relative symbolic
link, since it’ll be interpreted relative to the location of the
symbolic link itself, not to your current working directory.
See also link and readlink earlier in this chapter.
Read now
Unlock full access