Click here to get back home

spell checking...capitalization of proper names

 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
spell checking...capitalization of proper names JackL 07-28-2007
Get Chitika Premium
Posted by JackL on July 28, 2007, 7:54 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
Spell checking an html file with aspell or ispell September 2, 2007, 8:58 am
Spell check French in perl September 19, 2004, 2:39 pm
how to "spell out" the elements in a scalar variable? May 23, 2005, 2:10 pm
Proper quitting November 1, 2004, 5:59 pm
The "proper name" for the series: foo, bar, etc July 27, 2006, 2:49 pm
proper use of hash of hashes? April 18, 2005, 11:52 am
HELP -- UBUNTU -- Do not have a proper compiling system February 26, 2006, 11:01 am
LibXML UTF8 - Input is not proper UTF-8, indicate encoding ! March 5, 2005, 12:37 am
Need help with proper file locking of flatfile data May 25, 2005, 6:01 am
Proper echoing of HTTP headers from LWP call ? October 17, 2007, 8:51 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap