in reply to Reading anonymous array from file

The JSON spec allows anonymous arrays at the top level.:

s$ perl -MData::Dumper -MJSON::Tiny=j -E 'say Dumper j(q{["snow","whit +e","1212whatever"]})' $VAR1 = [ 'snow', 'white', '1212whatever' ];

But your data is saved as the output from Data::Dumper, and the "$VAR1 =" portion isn't JSON. If you can't change your storage format, you will probably need to revive that with eval.

Check out the documentation for Data::Dumper.


Dave