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

if i use chomp instead of $severity =~ s/\n//; its goes in infinite loop to retrieve the data ..

Replies are listed 'Best First'.
Re^4: array data to json
by choroba (Cardinal) on Jul 05, 2017 at 10:44 UTC
    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,