Click here to get back home

Net::SMTP woes

 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::SMTP woes Mark 08-11-2004
Posted by Mark on August 11, 2004, 8:19 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
Net::SMTP woes August 11, 2004, 8:19 pm
map woes June 28, 2007, 1:23 pm
GD.pm install woes October 30, 2004, 2:00 am
perl-Cvs woes March 9, 2005, 12:19 pm
File::Copy woes December 10, 2004, 7:32 am
Regular expression woes February 4, 2005, 8:19 am
XML::Simple and utf8 woes March 18, 2006, 9:07 am
RegEx Woes! Please Help, Simple Question May 1, 2005, 1:35 pm
Text::Levenshtein and utf8 woes March 26, 2006, 3:45 am
waitpid woes on Solaris, Perl 5.8.8 February 13, 2007, 2:22 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap