Skip to main content
Ctrl+K
PetaPerl - Home PetaPerl - Home
  • Introduction
  • Getting Started
  • CLI options
  • How-To
  • Reference · P5
  • Reference · PP
  • Introduction
  • Getting Started
  • CLI options
  • How-To
  • Reference · P5
  • Reference · PP

Section Navigation

  • pp-runtime perlfunc reference
    • alarm
    • binmode
    • bless
    • caller
    • chdir
    • chmod
    • chomp
    • chop
    • chown
    • chr
    • close
    • closedir
    • crypt
    • defined
    • delete
    • die
    • do
    • each
    • eof
    • exec
    • exists
    • exit
    • fileno
    • fork
    • getc
    • glob
    • gmtime
    • hex
    • index
    • join
    • keys
    • kill
    • lc
    • lcfirst
    • length
    • link
    • localtime
    • lstat
    • m
    • mkdir
    • oct
    • open
    • opendir
    • ord
    • pack
    • pipe
    • pop
    • pos
    • print
    • printf
    • prototype
    • push
    • qr
    • quotemeta
    • qx
    • rand
    • read
    • readdir
    • readline
    • readlink
    • ref
    • rename
    • require
    • reset
    • reverse
    • rewinddir
    • rindex
    • rmdir
    • s
    • say
    • seek
    • select
    • shift
    • sleep
    • sort
    • splice
    • split
    • sprintf
    • srand
    • stat
    • stringify
    • substr
    • symlink
    • sysopen
    • sysread
    • sysseek
    • system
    • syswrite
    • tell
    • tie
    • tied
    • time
    • tr
    • truncate
    • uc
    • ucfirst
    • umask
    • undef
    • unlink
    • unpack
    • unshift
    • untie
    • utime
    • values
    • vec
    • wait
    • waitpid
    • warn
    • x
  • Config
  • Cwd
  • Data::Dumper
  • Digest::MD5
  • Digest::SHA
  • Encode
  • Errno
  • File::Basename
  • File::Copy
  • File::Find
  • File::Glob
  • File::Path
  • File::Spec
  • File::Temp
  • File::stat
  • FileHandle
  • Hash::Util
  • IO::Dir
  • IO::File
  • IO::Handle
  • IO::Pipe
  • IO::Seekable
  • IO::Select
  • IO::Socket
  • Internals
  • List::Util
  • MIME::Base64
  • MIME::QuotedPrint
  • Math::GMP
  • POSIX
  • PadWalker
  • Peta::FFI
  • Scalar::Util
  • Socket
  • Storable
  • Sub::Util
  • Sys::Hostname
  • Time::HiRes
  • mro
  • version
  • Reference · PP
  • pp-runtime perlfunc reference
  • symlink

symlink#

Synopsis#

symlink $target, $linkname or die "Cannot symlink: $!";
symlink '/usr/bin/perl', '/usr/local/bin/perl';

Description#

Creates a symbolic (soft) link.

Creates a symbolic link LINKNAME that points to TARGET. Unlike hard links, symbolic links can span filesystems and can point to directories. Uses std::os::unix::fs::symlink. Returns 1 on success, 0 on failure (and sets $!).

See also#

link, readlink, unlink

previous

substr

next

sysopen

On this page
  • Synopsis
  • Description
  • See also
Source (accessible & AI-friendly)

© 2025-present PetaMem, s.r.o.  ·  rendered —

Documentation under development!

Disclaimer & bug reports  ·  License  ·  PDF  ·  Download pperl