in reply to XML input through STDIN

echo is what is stripping the quotes,but probably not where you expect

try writing directly to a file rather than using echo

open (my $out,'>>',/temp/MyLog.log) or die 'cant open'; while (<STDIN>) { print ;}

Added:

To understand what echo is doing paste this at a command line

echo "<param name="assignedgroup">fraud</param>"
What you get back is
<param name=assignedgroup>fraud</param>

Replies are listed 'Best First'.
Re^2: XML input through STDIN
by choroba (Cardinal) on Jun 03, 2017 at 07:46 UTC
    > echo is what is stripping the quotes

    Well, in fact, it's the shell that strips the quotes. Both single and double quotes are special for the shell and are removed during "Quote Removal" as the last step after all the expansions (see bash).

    ($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,
      Yes it's the shell that strips the quote but it's probably not bash (entering pedantic mode now).

      I don't really know about other systems, but on unixy-systems the shell used is /bin/sh which on my Debian is a link to dash.

        Our [man://] doesn't contaion dash, but its documentation on my box mentions "Quote Removal" as well. See also dash(1).

        ($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,
Re^2: XML input through STDIN
by Jazz-jj (Novice) on Jun 03, 2017 at 06:05 UTC
    GAH!!! you are correct sir. I couldn't wait and did it just now. Happened exactly as you said. Opening a file and writing instead of echo had the right format.

    can't say thanks enough.