Bug#871837: say $json not $coder

積丹尼 Dan Jacobson jidanni at jidanni.org
Sat Aug 12 06:31:06 UTC 2017


Package: perl-doc
Version: 5.26.0-5
Severity: wishlist
File: /usr/share/man/man3/JSON::PP.3perl.gz

Say $json, like

        # OO-interface

        $json = JSON->new->allow_nonref;

        $json_text   = $json->encode( $perl_scalar );
        $perl_scalar = $json->decode( $json_text );

Don't say $coder, like

        # OO-interface

        $coder = JSON::PP->new->ascii->pretty->allow_nonref;

        $json_text   = $json->encode( $perl_scalar );
        $perl_scalar = $json->decode( $json_text );

Else one cannot run the examples.




More information about the Perl-maintainers mailing list