Click here to get back home

website hosting

 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
website hosting forall2see_2000@yahoo.com 01-03-2005
Get Chitika Premium
Posted by forall2see_2000@yahoo.com on January 3, 2005, 3:27 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
Web Hosting Packages India - Cheap Web Hosting Hyderabad December 20, 2007, 3:37 am
mod_perl hosting March 3, 2005, 6:45 pm
Mason hosting support? February 19, 2005, 12:11 pm
(OT) Web Hosting Special Offer.................................. April 14, 2005, 9:03 am
Free Blog Hosting March 20, 2006, 2:21 am
Free Blog Hosting March 20, 2006, 2:23 am
Looking for Perl hosting what support Catalyst April 5, 2006, 8:30 pm
Does-it exist any hosting directory which indicates Perl version ? November 12, 2006, 6:10 am
Re: HOST - dreamhost.com / Liberality (Hosting, Basic Requirement) June 6, 2006, 10:59 am
Website scraper September 24, 2005, 8:59 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap