All I can say is,, I've not had a good day. This is the correct code for
getting the most popular value. I'd forgot to update $count with $value
foreach my $field (keys %found) { # foreach field
my $value='';
my $count=0;
foreach my $key (keys %{$found{$field}}) { # foreach field -> value
Below is my revised code based on your comments. It is tidier but more
importantly it works correctly. Ironically, it didn't actually work
correctly before on my dev machine either,– it didn't find all matches.
It looks like using my original code it was only using the first element in
each
Hi Gary,
see below for my comments.
On Wed, 22 Jul 2015 17:11:29 +0100
Gary Stainburn wrote:
> On Wednesday 22 July 2015 16:10:18 Shlomi Fish wrote:
> > Hi Gary,
> >
> > some comments about your code.
> >
> > On Wed, 22 Jul 2015 15:32:33 +0100
> >
> > Gary Stainburn wrote:
> > > I've written t
On Wednesday 22 July 2015 16:10:18 Shlomi Fish wrote:
> Hi Gary,
>
> some comments about your code.
>
> On Wed, 22 Jul 2015 15:32:33 +0100
>
> Gary Stainburn wrote:
> > I've written the code below to parse a number of text page files
> > generated by Tesseract OCR software to look for a guess the
Hi Gary,
some comments about your code.
On Wed, 22 Jul 2015 15:32:33 +0100
Gary Stainburn wrote:
> I've written the code below to parse a number of text page files generated by
> Tesseract OCR software to look for a guess the most likely values for VIN,
> Reg number and stock number for a veh
I've written the code below to parse a number of text page files generated by
Tesseract OCR software to look for a guess the most likely values for VIN,
Reg number and stock number for a vehicle.
On my development site it works fine and gives the values it should.
However, on my live server it o