Click here to get back home

any tricks to sending XML to .NET web service?

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
any tricks to sending XML to .NET web service? jims 01-19-2006
Get Chitika Premium
Posted by jims on January 19, 2006, 6:01 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by Mark Clements on January 21, 2006, 4:59 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
map tricks September 3, 2006, 5:21 pm
tricks against WWW::Mechanize April 10, 2005, 6:48 pm
HEREDOC tricks, etc. October 28, 2007, 5:13 pm
Hash of array access tricks. Sorry, long. October 14, 2005, 5:43 pm
>>>>>>>>>>>>>>> FREE TIPS & TRICKS ON HOW TO GET YOUR HOME LOAN APPROVED November 24, 2007, 6:59 am
PID of Service December 19, 2007, 9:07 am
Running as a Service September 14, 2004, 12:43 pm
SMS in Perl using a Web service December 19, 2005, 8:33 pm
service name package June 23, 2006, 8:19 am
Using HTTPS with LWP::UserAgent = Bad Service March 30, 2005, 6:45 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap