Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Any downsides to this slurp idiom?

by kcott (Archbishop)
on Jun 23, 2018 at 08:47 UTC ( [id://1217272]=note: print w/replies, xml ) Need Help??


in reply to Any downsides to this slurp idiom?

G'day haukex,

I have no issue with that idiom, per se. I use it myself in production code and don't recall ever having had any problems with it.

It's included in chromatic's Modern Perl book: see the "Perl Beyond Syntax - Idioms - Easy File Slurping" section. That also makes reference to the issue raised by ++BrowserUk.

I also concur with what a number of other monks said about improving the error message.

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-24 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found