Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: JSON into string

by neilwatson (Priest)
on Aug 31, 2016 at 18:46 UTC ( #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
Node Status?
node history
Node Type: note [id://1170920]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2019-04-26 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (128 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!