1symlink(3) User Contributed Perl Documentation symlink(3)
2
3
4
6 PerlIO::via::symlink - PerlIO layers for create symlinks
7
9 open $fh, '>:via(symlink)', $fname;
10 print $fh "link foobar";
11 close $fh;
12
14 The PerlIO layer "symlink" allows you to create a symbolic link by
15 writing to the file handle.
16
17 You need to write C"link $name" to the file handle. If the format does
18 not match, "close" will fail with EINVAL.
19
21 ----------------------------------- ------ ------ ------ ------ ------ ------
22 File stmt branch cond sub time total
23 ----------------------------------- ------ ------ ------ ------ ------ ------
24 blib/lib/PerlIO/via/symlink.pm 100.0 100.0 n/a 100.0 100.0 100.0
25 Total 100.0 100.0 n/a 100.0 100.0 100.0
26 ----------------------------------- ------ ------ ------ ------ ------ ------
27
29 Chia-liang Kao <clkao@clkao.org>
30
32 Copyright 2004-2005 by Chia-liang Kao <clkao@clkao.org>.
33
34 This program is free software; you can redistribute it and/or modify it
35 under the same terms as Perl itself.
36
37 See <http://www.perl.com/perl/misc/Artistic.html>
38
39
40
41perl v5.30.0 2019-07-26 symlink(3)