Click here to get back home

pop3 and http proxy

 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
pop3 and http proxy Daniel 03-16-2005
`--> Re: pop3 and http proxy Gunnar Hjalmars...03-17-2005
Get Chitika Premium
Posted by Daniel on March 16, 2005, 2:52 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 Gunnar Hjalmarsson on March 17, 2005, 3:29 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

Similar ThreadsPosted
HTTP Proxy via HTTP Layer by Perl? October 19, 2004, 5:56 pm
POE HTTP Proxy October 3, 2004, 1:26 pm
anyone tried http-proxy on windows? November 16, 2004, 7:42 pm
HTTP Get with Proxy authentication January 17, 2005, 3:42 pm
How to get CPAN to use Http Proxy? October 24, 2005, 10:02 am
Getting started with HTTP::Proxy April 10, 2008, 4:11 pm
set IE enviroment to use HTTP::Proxy module? November 6, 2007, 8:21 am
http://freewebtown.com/learnstuffonline - Web Proxy - click on the ads please :) July 31, 2005, 9:54 pm
HTTP::Proxy Error: "Getting request failed: Client closed" January 19, 2007, 11:25 pm
help with net pop3 October 21, 2004, 11:05 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap