Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Any downsides to this slurp idiom?

by tybalt89 (Monsignor)
on Jun 22, 2018 at 12:51 UTC ( #1217186=note: print w/replies, xml ) Need Help??


in reply to Any downsides to this slurp idiom?

You're just being paranoid :)

I often use

my $data = do { local(@ARGV, $/) = $file; <> };

Similar but shorter :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2023-03-27 01:39 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?