Click here to get back home

The Directory of Indian Web Designers, Graphic Designers

 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
The Directory of Indian Web Designers, Graphic Designers charan.uptrend 03-01-2007
Posted by charan.uptrend on March 1, 2007, 11:11 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
good website for vlsichip designers http://www.vlsichipdesign.com April 10, 2007, 7:00 am
###########INDIAN AUNTEY FUCKING SEX VIDEO free DOWN LOAD FREE@@@@@@@@########## November 22, 2007, 4:27 am
GD Perl graphic November 11, 2005, 7:58 am
graphic library GD March 6, 2008, 6:34 am
two axis, two data sets GD::Graphic December 4, 2006, 1:36 pm
/cgi-bin/ directory March 10, 2006, 2:15 pm
sort directory help January 3, 2005, 2:38 pm
Directory listing January 19, 2005, 12:50 am
Directory search February 14, 2005, 1:50 am
parsing directory April 17, 2005, 12:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap