Click here to get back home

Help with Sending Multiple Emails!

 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
Help with Sending Multiple Emails! Terry 10-06-2004
Get Chitika Premium
Posted by P.R.Brady on October 7, 2004, 11:10 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
Test Sending Emails Via CGI from PC (local host): Is It Possible? May 19, 2005, 2:33 am
deciphering emails in PERL October 21, 2004, 9:54 pm
Saving attachments from emails October 22, 2004, 12:25 pm
How to generate random emails? February 24, 2005, 11:35 am
Receiving emails with attachments April 8, 2006, 2:26 pm
Trying to catch invalid emails May 6, 2008, 10:58 pm
Trying to catch invalid emails June 10, 2008, 12:08 am
parsing postfix bounce back emails from log October 10, 2005, 3:22 pm
assigning multiple hash values to multiple variables May 2, 2006, 7:55 pm
Sending using Net::IRC March 7, 2008, 12:58 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap