03 Jul 2014 20:09:38 UTC
- Distribution: File-Copy-Link
- Module version: 0.06
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (1586 / 0 / 0)
- KwaliteeBus factor: 1
- 80.12% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (10.9KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:2 non-PAUSE usersRMBARKER Robin Barker
File::Copy::Link - extension for replacing a link by a copy of the linked file
use File::Copy::Link; copylink 'file.lnk'; use File::Copy::Link qw(safecopylink); safecopylink 'file.lnk';
reads the filename linked to by the argument and replaced the link with a copy of the file. It opens a filehandle to read from the link, deletes the link, and then copies the filehandle back to the link.
does the same as
copylinkbut without the open-and-delete manouvre. Instead, it uses
File::Spec::Linkto find the target of the link and copies from there.
This module is mostly a wrapper round
File::Copy::copy, the functionality is available in a command line script copylink.
Nothing by default, can export
copylink(1) File::Copy(3) File::Spec::Link(3)
Robin Barker, <RMBarker@cpan.org>
Copyright 2003, 2006, 2007, 2011, 2014 by Robin Barker
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install File::Copy::Link, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install File::Copy::Link
For more information on module installation, please visit the detailed CPAN module installation guide.