Hi Jonathan,

On Thu, 28 Jan 2016 17:57:19 +0000
Jonathan Harris via beginners <beginners@perl.org> wrote:

> Hi,
> I found that this works, assuming that the module is installed.
> 
> #!/usr/bin/perl
> use warnings;
> use strict;
> use File::Slurp qw ( :edit );

using File::Slurp is no longer recommended:

http://blogs.perl.org/users/leon_timmermans/2015/08/fileslurp-is-broken-and-wrong.html

I don't know how many of the listed alternatives have equivalents to the edit
functions, but see my issue and branch for Path::Tiny about it:

* https://github.com/dagolden/Path-Tiny/issues/161

* https://github.com/shlomif/Path-Tiny/tree/edit-file-methods--a-la-File-Slurp

Regards,

        Shlomi Fish

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to