Click here to get back home

Chat and earn friends like Orkut through this link

 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
Chat and earn friends like Orkut through this link Remo 11-02-2007
Posted by Remo on November 2, 2007, 4:43 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
hi friends November 5, 2007, 11:53 pm
read this friends .... how good it is ? March 8, 2007, 6:00 am
Earn&Own-Now and for your Future! May 25, 2007, 5:31 am
earn money AND BUY WHAT U WANT January 20, 2008, 7:55 am
earn money AND BUY WHAT U WANT January 21, 2008, 5:21 am
Earn 12% daily of your investment!!! August 24, 2005, 7:32 pm
Try this earn min 300 per month by reading 10 sms May 15, 2007, 2:00 pm
** Eaily Earn $250 Daily ** August 4, 2007, 1:41 pm
Earn money searching the Web. It really works. May 12, 2005, 11:58 pm
**EARN $10000 PER MONTH**CHECK PROOF** November 28, 2007, 8:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap