On Tue, 7 Sep 2004, West, William M wrote:

There's all kinds of edge cases that would have to be dealt with here. I
really think that putting the XML directly into a command line is doomed
to failure; putting it in a temp file should be much more robust.

i agree.. but the above might work for this person.

XML is Unicode. Unicode can contain all kinds of crazy data. Unless the shell has been upgraded to support Unicode character sets -- this could be true for recent versions of Bash et al, but I'm not aware of it -- then this isn't a problem, but if the shell doesn't support that then injecting arbitrary Unicode data into a shell command seems Brave.


This isn't the right solution to the problem. You can come up with approaches that will work in many cases, but there's way too many edge cases to be dealt with sanely.

It would be far better to just use the temp file, or the IPC approach that was also suggested in this thread, but not a naked system command.


-- Chris Devers

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to