So I am trying to read an XML file into a string in Perl and send it as part of a SOAP message. I know this is not ideal as there are methods for SOAP sending files, however, I am limited to having to use the SOAP that is set up, and it is not set up for sending with file support.
Therefore I need to parse out the markup tags <> and replace them with []. What is the best way to do this?
Will something simple like this work for you?
yperforms a one to one substitution. < becomes [, and > becomes ]. The perlop documentation explains it in greater detail.