Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Any downsides to this slurp idiom?

by hippo (Bishop)
on Jun 22, 2018 at 16:21 UTC ( #1217222=note: print w/replies, xml ) Need Help??


in reply to Re: Any downsides to this slurp idiom?
in thread Any downsides to this slurp idiom?

Why not use File::Slurp?

See File::Slurp is broken and wrong.

  • Comment on Re^2: Any downsides to this slurp idiom?

Replies are listed 'Best First'.
Re^3: Any downsides to this slurp idiom?
by jimpudar (Pilgrim) on Jun 22, 2018 at 17:17 UTC

    Huh, very interesting. Sounds like I will probably be switching over to File::Slurper from now on.

    Thanks!

    Jim

    πάντων χρημάτων μέτρον έστιν άνθρωπος.

      Path::Tiny's helpers are great and the package has a lot more than slurping to offer.

        Been a while, but thought I'd mention for posterity Mojo::File is now my go-to. It has a slurp method and lots of other goodies.

        πάντων χρημάτων μέτρον έστιν άνθρωπος.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217222]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2023-03-26 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?