Click here to get back home

Net::NNTP

 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
Net::NNTP curious 10-31-2004
Posted by curious on October 31, 2004, 10:23 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
Posting to nntp newsgroup with Perl (Net::NNTP) March 4, 2007, 7:05 am
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
Net::NNTP, retrieving articles help please December 17, 2004, 3:14 pm
How do I reply a NNTP message? December 6, 2005, 12:46 am
modules for nntp client April 14, 2008, 1:25 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap