in reply to Re: Updating XML files
in thread Updating XML files

Hi

Thank you very much for your help. However, I am not able to run your code because of an error I get.

Use of := for an empty attribute list is not allowed

Can you please advise?

Thanks

Replies are listed 'Best First'.
Re^3: Updating XML files
by choroba (Cardinal) on May 24, 2016 at 14:10 UTC
    You can't run it as Perl code. Install XML::XSH2, save the code as script.xsh , run it with xsh script.xsh . Or, supply the whole code to the xsh function inside of a Perl script.
    ($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,