Click here to get back home

printing a subject line

 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
printing a subject line Wade Ward 10-16-2007
Get Chitika Premium
Posted by Wade Ward on October 18, 2007, 2:35 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 Michele Dondi on October 18, 2007, 3:41 pm
Please log in for more thread options
wrote:

>> Re the translation: no, it's way too OT here. Write to me by email and
>> I may be so gentle as to translate that for you.
>
>A message (from mpjensen7@comcast.net) was received at 18 Oct 2007 18:07:00
>+0000.
>
>The following addresses had delivery problems:
>
>Permanent Failure:
>Delivery last attempted at Thu, 18 Oct 2007 18:07:02 -0000
>
>Che cosa è il vostro indirizzo?

I already gave you my real address and you did already write to me
directly.


Michele
--
->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,

Similar ThreadsPosted
Printing a new line May 10, 2008, 5:28 pm
backtick not printing the 'echo'ed line July 19, 2004, 12:59 pm
start printing at the end of the previous line July 18, 2006, 10:37 am
Printing the next line of text of the file April 19, 2007, 6:37 pm
UTF-8 subject in an email June 13, 2006, 7:58 am
How to get a colored subject September 11, 2007, 6:06 am
Fetching to and from and subject from MIME:Parser October 13, 2004, 12:40 am
Subject: Make 1000 dollars over night March 7, 2005, 3:13 am
Print Subject without characters Just Numbers using POP3Client. Please Help April 10, 2007, 11:27 pm
How can I get a colored subject in my Perl created e-mails. September 11, 2007, 6:11 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap