Click here to get back home

Perl and connection via a 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
Perl and connection via a proxy? ralphblack 01-20-2006
Get Chitika Premium
Posted by ralphblack on January 20, 2006, 4:41 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
Proxy in perl October 1, 2008, 3:30 am
Proxy in perl October 2, 2008, 6:00 pm
help! perl proxy problem? November 23, 2004, 2:59 am
making perl act like a proxy June 6, 2005, 12:45 pm
Howto:Perl connection to Oracle February 28, 2007, 9:52 am
Teradata Perl Connection Question. August 1, 2008, 10:08 am
Perl proxy chaining script December 19, 2004, 10:58 am
How to set DBI connection timeout for Win32 Perl->MySQL ? October 13, 2007, 11:44 am
FTP PUT with proxy? January 18, 2006, 12:18 pm
Help using a proxy September 7, 2006, 5:26 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap