Click here to get back home

www.yedil.com best hindi entertainment site

 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
www.yedil.com best hindi entertainment site diprat7 10-10-2007
Get Chitika Premium
Posted by diprat7 on October 10, 2007, 2:28 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
www.yedil.com best hindi entertainment site October 8, 2007, 10:55 am
wana watch latest hindi hot videos? October 2, 2007, 2:45 pm
wana watch latest hindi hot videos? October 11, 2007, 2:16 pm
top menu on a site July 15, 2004, 12:46 am
Best Job Search Site... February 7, 2006, 12:12 am
New site: www.teodorfilimon.com April 9, 2006, 10:44 am
Transitioning Web Site February 25, 2007, 4:46 pm
I found this great little site. November 21, 2004, 12:33 pm
LWP:RobotUA site retrieval March 30, 2005, 11:04 am
Working in a secure site April 9, 2005, 3:44 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap