Click here to get back home

why /usr/bin/cpan can't find HTML::Mail ?

 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
why /usr/bin/cpan can't find HTML::Mail ? Yakov 07-03-2007
Get Chitika Premium
Posted by Yakov on July 3, 2007, 7:22 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

Posted by Paul Lalli on July 3, 2007, 8:42 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
How to send HTML mail via 'use Net::SMTP' May 16, 2006, 3:59 am
Find a line in an html file July 13, 2006, 10:25 am
How find and replace a string in the HTML file October 6, 2005, 5:24 am
Using Mail::IMAPClient and Mail::Folder together June 2, 2005, 9:57 pm
Sending mail through Mail::Outlook May 25, 2006, 12:22 pm
ESS labels on ESMTP mail: perhaps using Net::Server::Mail::ESMTP April 17, 2007, 11:58 am
Hash references & parsing HTML with HTML::Parser February 16, 2005, 8:10 pm
Best way to remove body/html tag from HTML::Element tree September 6, 2006, 6:38 pm
Return HTML between tags with HTML::TokeParser ? February 22, 2005, 5:44 pm
Parsing HTML - using HTML::TreeBuilder October 5, 2006, 2: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