in reply to Re^3: array data to json
in thread array data to json

Please, try to read the whole sentences, not just blindly copy the code. I wrote

> if the newline comes last in the values

Clearly, newlines come first, so chomp is not applicable. But as you hadn't posted the XML before, I had to guess.

($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,