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:
parent
a25938f123
commit
40dd8a3a13
1 changed files with 2 additions and 2 deletions
|
|
@ -1,2 +1,2 @@
|
|||
use File::Slurp;
|
||||
my $text = read_file($filename);
|
||||
use Path::Tiny;
|
||||
my $text = path($filename)->slurp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue