Hi Shlomi,

Thanks for that pointer.
I read your linked pages and it doesn't seem that there is yet a solution
as simple as the 'edit_file' method.
Shame as it was so handy, but the arguments against it are quite compelling.

@Frank - looks like the original scripting with printing to file handles is
the immediate future.

Thanks,
Jonathan

On Fri, Jan 29, 2016 at 10:45 AM, Shlomi Fish <shlo...@shlomifish.org>
wrote:

> 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