From: "thoran@..." Date: 2006-03-17T22:14:04+09:00 Subject: Rapid Prototyping Perl In Ruby? Hello Again Good Folk of Rubydom, I was searching for a library in Ruby which I wasn't sure existed, and sometimes I'll go looking to see if Perl has something. (And when doesn't it?) When I find that something in Perl it'll often lead me to something that does exist in Ruby because of a re-implementation which has the same name or makes reference to the Perl version as its inspiration, such as was the case with Mechanize recently. Anyhow whilst doing so, I came across this file: http://search.cpan.org/src/SIMON/Acme-OneHundredNotOut-100/OneHundredNotOut.pm, which contains this little gem: "You know those little snippets that Google and other search engines display when you search for some terms? They contextualise the terms in the body of the document and highlight them in a snippet that best represents how they're used in the document. This is actually a really hard problem, and it took me several goes to get L right. It uses L as an "emergency" contextualizer if it can't get anything right at all, but the algorithm itself is a bit of a swine. "I actually had to prototype this module in Ruby to get my thinking clear enough to code it up in Perl..." Does this seem a little muddle-headed to anyone!? Sincerely, thoran