cheneychen
cheneychen

Reputation: 52

Difference between "use JSON" and "use JSON -support_by_pp"?

Looks to me, the later one has more functionalities. But could not find specific doc for it. No "support_by_pp" found by grep under the perl lib directory as well.

Can someone please point it out for me?

Upvotes: 1

Views: 295

Answers (1)

Miller
Miller

Reputation: 35198

Check perldoc JSON

The JSON module has two backends: a pure Perl backend (PP) and a C backend (XS). Some features are only available in the PP backend, but -support_by_pp makes some of these features available even when using the XS backend.

To find out which version you're using, check JSON #Backend Module Decision

Upvotes: 2

Related Questions