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

Re: JSON into string

by neilwatson (Priest)
on Aug 31, 2016 at 18:46 UTC ( [id://1170920]=note: print w/replies, xml ) Need Help??


in reply to JSON into string

Some alternate slurp methods here

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re^2: JSON into string
by Anonymous Monk on Aug 31, 2016 at 22:24 UTC

    :) thats terribly unsweetened :P

    use Path::Tiny qw/ path /; my $foo = path($file)->slurp_utf8; my $foo = path($file)->slurp_raw; my $foo = path($file)->slurp( {binmode => ":raw"} );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-24 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found