Click here to get back home

PLucene minimum for indexing?

 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
PLucene minimum for indexing? afrinspray 11-02-2006
Get Chitika Premium
Posted by afrinspray on November 2, 2006, 11:41 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
question about plucene October 31, 2004, 7:47 pm
Hash ref problem in Plucene::Simple (while searching a term) November 6, 2004, 10:27 pm
PLUCENE equivalent module for Free Text Retrieval in DBMS November 1, 2004, 11:16 am
Both Methods and Indexing for Objects? July 31, 2007, 9:18 am
Indexing word documents with perl? November 3, 2004, 2:02 am
full-text indexing of pdf, rtf, txt, html November 16, 2005, 5:36 pm
indexing large collection of HTML files February 6, 2007, 11:47 am
similar articles algorithm based on numeric indexing of all rows via columns in a table January 18, 2005, 6:42 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap