Click here to get back home

Search Engine Marketing (SEM), SEM Firm India, Internet Marketing Services India Hyderabad

 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
Search Engine Marketing (SEM), SEM Firm India, Internet Marketing Services India Hyderabad visioninfosyslinks 12-20-2007
Get Chitika Premium
Posted by visioninfosyslinks on December 20, 2007, 3:33 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
SEM Firm India December 20, 2007, 3:35 am
Web Hosting Packages India - Cheap Web Hosting Hyderabad December 20, 2007, 3:37 am
Marketing Software April 28, 2008, 12:03 am
You new viral marketing webpage January 3, 2006, 4:52 am
Inviting You to World's 1st Online Marketing Careers Conference January 5, 2008, 1:04 am
Perl search engine June 27, 2008, 10:51 pm
Vector Space Search Engine October 11, 2005, 1:14 am
Make a search engine for your website with PHP October 17, 2005, 3:02 am
Google Custom Search Engine December 27, 2006, 11:25 am
looking for simple code to build a search engine November 30, 2004, 10:47 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap