Perlfect Solutions
 

[Perlfect-search] Search scores in percents

JARED RUSSELL WHITE jrwhite@unix.amherst.edu
Mon, 21 Aug 2000 11:11:37 -0400 (EDT)
Hi everybody,

I'm interested in having the "score" value on the results page be in
percent form, as Giorgos has as the demo on his site. I think it involves
more than saying simply

        my $score = sprintf "%.2f%%", $answer{$_};

wihch merely shoves a % on the end, because a search that has only hit
might output a very small score, and some scores are greater than 100.

Then again, I might have a weird NT problem going on...

Any ideas are welcome!  Thanks a lot.

- Jared White