Click here to get back home

encrypted connection with Mail::Sender?

 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
encrypted connection with Mail::Sender? Morfys 06-17-2007
Posted by Morfys on June 17, 2007, 1:25 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

Posted by Gunnar Hjalmarsson on June 17, 2007, 3:24 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
Mail::Sender and STARTTLS July 23, 2004, 11:28 pm
Mail::Sender problem August 20, 2007, 5:53 pm
Mail::Sender - Attaching output from pipe October 20, 2004, 11:34 pm
Net::SMTP error: Can't locate Mail/Sender.pm in @INC May 19, 2005, 10:33 am
using Mail::Sender to send email with attachment April 17, 2006, 9:02 pm
problem with hashes of attachments and Mail::Sender::Easy June 6, 2006, 9:18 am
How is this Perl Script encrypted? September 21, 2004, 3:00 pm
creating and validating encrypted password November 13, 2004, 10:41 pm
Extracting encrypted in a table on DB2 with Perl December 9, 2004, 11:32 pm
FAQ 8.11: How do I decode encrypted password files? December 27, 2004, 12:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap