Acme-CPANModules-Symlink

 view release on metacpan or  search on metacpan

lib/Acme/CPANModules/Symlink.pm  view on Meta::CPAN


Perl provides the `symlink` builtin.

<pm:Setup::File::Symlink> can create/fix/delete symlink. Part of the Setup
module family, the functions in this module are idempotent with transaction/undo
support.


**Finding**

Perl provides the `-l` operator to test if a file or filehandle is a symbolic
link. This performs an `lstat()` call, which unlike `stat()` can detect if a
handle is symbolic link.


**Testing**

<pm:Test::Symlink>

<pm:File::Util::Test> provides some utilities that are symlink-aware, like
`l_abs_path` and `file_exists`.

lib/Acme/CPANModules/Symlink.pm  view on Meta::CPAN

B<Creating>

Perl provides the C<symlink> builtin.

L<Setup::File::Symlink> can create/fix/delete symlink. Part of the Setup
module family, the functions in this module are idempotent with transaction/undo
support.

B<Finding>

Perl provides the C<-l> operator to test if a file or filehandle is a symbolic
link. This performs an C<lstat()> call, which unlike C<stat()> can detect if a
handle is symbolic link.

B<Testing>

L<Test::Symlink>

L<File::Util::Test> provides some utilities that are symlink-aware, like
C<l_abs_path> and C<file_exists>.

lib/Acme/CPANModules/Symlink.pm  view on Meta::CPAN


perlancar <perlancar@cpan.org>

=head1 CONTRIBUTING


To contribute, you can send patches by email/via RT, or send pull requests on
GitHub.

Most of the time, you don't need to build the distribution yourself. You can
simply modify the code, then test via:

 % prove -l

If you want to build the distribution (e.g. to try to install it locally on your
system), you can install L<Dist::Zilla>,
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
that are considered a bug and can be reported to me.

lib/Acme/CPANModules/Symlink.pm  view on Meta::CPAN


This software is copyright (c) 2023, 2022 by perlancar <perlancar@cpan.org>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModules-Symlink>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=cut



( run in 2.320 seconds using v1.01-cache-2.11-cpan-0bb4e1dffa6 )