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

Re: Any downsides to this slurp idiom?

by kcott (Archbishop)
on Jun 23, 2018 at 08:47 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2023-03-24 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?