in reply to Re: Can not use JSON module
in thread Can not use JSON module

Isn't that what JSON does? See also JSON::MaybeXS .

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^3: Can not use JSON module
by hippo (Archbishop) on Jun 02, 2017 at 14:10 UTC

    But that's the point. The OP says that they cannot install JSON "due to limitation" (whatever that may mean). This is therefore a nice means for them to choose between the modules which actually do the work without having to install the non-core JSON module.

      JSON::XS is not in core, either, so what's the point in trying to use it?

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

        It might be installed and if it is then it will be faster. What's the point in not trying to use it?

        As tejD has not yet come back with any detail as to which modules are installed/installable it's all very much guesswork.

Re^3: Can not use JSON module
by stevieb (Canon) on Jun 02, 2017 at 14:02 UTC

    I thought so, but I'm sure when I tested it on a box without JSON::XS it failed. I could have been imagining things at the time after a long day of work, so I'll re-test this today.