File::Slurper::Temp - File::Slurper + File::Temp
This document describes version 0.003 of File::Slurper::Temp (from Perl distribution File-Slurper-Temp), released on 2017-01-16.
Use like you would use File::Slurper's write_text or write_binary:
write_text
write_binary
use File::Slurper::Temp qw(write_text write_binary); write_text("/tmp/foo.txt", "some text"); write_binary("/tmp/bar", $somedata);
This module is a simple combination of File::Slurper and File::Temp. It provides write_text and write_binary. The functions are the same as their original in File::Slurper but they will first write to a temporary file created by File::Temp's tempfile, then rename the temporary file to the originally specified name. If the filename is originally a symlink, it will be replaced with a regular file. This can avoid symlink attack.
tempfile
Please visit the project's homepage at https://metacpan.org/release/File-Slurper-Temp.
Source repository is at https://github.com/perlancar/perl-File-Slurper-Temp.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=File-Slurper-Temp
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.
File::Slurper
File::Temp
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017 by 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.
To install File::Slurper::Temp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Slurper::Temp
CPAN shell
perl -MCPAN -e shell install File::Slurper::Temp
For more information on module installation, please visit the detailed CPAN module installation guide.