logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PerlIO::via::symlink - PerlIO layers for create symlinks

Authors

       Chia-liang Kao <clkao@clkao.org>

Description

       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.

Name

       PerlIO::via::symlink - PerlIO layers for create symlinks

Synopsis

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

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
        ----------------------------------- ------ ------ ------ ------ ------ ------

See Also