Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Any downsides to this slurp idiom?

by haukex (Archbishop)
on Jun 22, 2018 at 17:39 UTC ( #1217233=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?

One reason is what hippo said, the other being that this is IMO one of those cases where pure Perl does everything I need - I can read lines in list context and I can use layers like :raw, :crlf, and :encoding(...) - there's really no need to load a module. (Unless I'm doing additional stuff, like filename manipulation, in which case I usually use Path::Class, which has slurping and spewing built in.)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2023-03-24 02:58 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (60 votes). Check out past polls.