Pathologically Eclectic Rubbish Lister | |
PerlMonks |
email parsing problem?by Octavian (Monk) |
on Dec 10, 2003 at 19:34 UTC ( [id://313827]=perlquestion: print w/replies, xml ) | Need Help?? |
Octavian has asked for the wisdom of the Perl Monks concerning the following question:
Ok, I have what I thought would be a simple concept turning into a real pain. Basically, the thought is this:
A user from wherever sends an email to our HPUX machine (using perl 5.6.1) with a file attached to the email. The HPUX machine has an alias that calls a perl script.
This perl script simply throws STDIN into an array, and prints out the contents to a file.
such as:
now, for normal text files, works like a charm....but we now have people that are trying to send us xml stuff (of which I dont know hardly anything about), and for some reason, several characters are being replaced with other chars, causing it to not work correctly...an example is: xmlns="http://www.com" xmlns:xsi="http://www.foo.com" becomes xmlns3D"http://www.com" =xmlns:xsi3D"http://www.foo.com" any ideas why stuff like 3D gets put in there, and how to I get rid of that stuff?
Back to
Seekers of Perl Wisdom
|
|