> On Jun 29, 2016, at 09:20, Uri Guttman <u...@stemsystems.com> wrote:
> 
> since you are correct about modules being already there, why do you write 
> your own versions of 
> slurp_file and write_file? the module File::Slurp has those functions which 
> are stable, fast and debugged.

Please don’t use File::Slurp. See 
http://blogs.perl.org/users/leon_timmermans/2015/08/fileslurp-is-broken-and-wrong.html
 for some reasons why. 

File::Slurper or Path::Tiny are both good alternatives; Path::Tiny in 
particular has a very convenient API and makes working with files, directories, 
and paths in a cross-platform way super easy. 

thanks,
john.


--
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