On Tue, Apr 8, 2014 at 4:21 PM, Morse, Richard E.MGH <
[email protected]> wrote:

> Since some recent update to the JSON module, you have to use:
>         my $data = decode_json(
> *scalar*( slurp('file.json') ) );
>

the documentation gives a sly hint with

$
> *perl_scalar* = decode_json $json_text

but the change may well be in underlying *utf8*::decode not in JSON code
 or further afield.

Since an argument is normally in a list context, i'm unclear why *some_*
*function(slurp($file))* ever gave scalar slurp instead of list slurp.
Unless they deleted a decode($) prototype trying to modernize, or an
internals bug was fixed?


-- 
Bill
@n1vux [email protected]

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to