Click here to get back home

for rossie: dominating nntp server - saf - (1/1)

 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
for rossie: dominating nntp server - saf - (1/1) rusty 02-12-2007
Posted by rusty on February 12, 2007, 6:03 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
Cannot authenticate to NNTP server with Net::NNTP authinfo() August 8, 2006, 8:11 pm
for bowie: truly terrific nntp server - sopte polpeg - (1/1) March 26, 2007, 3:35 pm
attn: kandace - very intelligent nntp server access - iv agra - (1/1) February 13, 2007, 4:12 am
Posting to nntp newsgroup with Perl (Net::NNTP) March 4, 2007, 7:05 am
Net::NNTP October 31, 2004, 10:23 pm
NNTP over SSL November 18, 2005, 2:41 am
nntp scan February 7, 2005, 4:51 pm
non nntp usenet January 18, 2008, 4:27 am
$nntp ->list() April 19, 2008, 5:11 pm
Which NNTP module to use? July 27, 2008, 11:30 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap