Move from File::Slurp to Path::Tiny

This change moves from File::Slurp to Path::Tiny.
File::Slurp is known to be buggy and vulnerable.
See also:

https://rt.cpan.org/Public/Bug/Display.html?id=95484
This commit is contained in:
Martin McGrath 2014-05-10 10:07:00 +01:00
parent a25938f123
commit 40dd8a3a13

View file

@ -1,2 +1,2 @@
use File::Slurp;
my $text = read_file($filename);
use Path::Tiny;
my $text = path($filename)->slurp;