PerlIO::via::symlink(3pm)

PerlIO::via::symlink3pm

Perlio layers for create symlinks

Usage

 open $fh, '>:via(symlink)', $fname;
 print $fh "link foobar";
 close $fh;

Overview

The PerlIO layer "symlink" allows you to create a symbolic link by writing to the file handle.

You need to write C"link $name" to the file handle. If the format does not match, "close" will fail with EINVAL.

Test coverage

 ----------------------------------- ------ ------ ------ ------ ------ ------
 File                                  stmt branch   cond    sub   time  total
 ----------------------------------- ------ ------ ------ ------ ------ ------
 blib/lib/PerlIO/via/symlink.pm       100.0  100.0    n/a  100.0  100.0  100.0
 Total                                100.0  100.0    n/a  100.0  100.0  100.0
 ----------------------------------- ------ ------ ------ ------ ------ ------

Releases

12 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0–7
  4. 8–10
  5. 11
  6. 12–13
  7. Arch

Authors

Chia-liang Kao <[email protected]>

From perlio-via-symlink 0.05-10 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.