Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Any downsides to this slurp idiom?

by tybalt89 (Monsignor)
on Jun 22, 2018 at 12:51 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found