Re: To use signatures or not to use?

2015-07-22 Thread Brandon McCaig
On Wed, Jul 22, 2015 at 3:11 PM, Alex Becker wrote: > Dear all, > > Perl now has subroutine signatures. However, they are marked as experimental > feature. > As I really like it, I'm always tempted to use it. > On the other hand, I don't want to wast efforts to something I have to roll > back. > >

Re: To use signatures or not to use?

2015-07-22 Thread Kent Fredric
On 23 July 2015 at 07:11, Alex Becker wrote: > > Perl now has subroutine signatures. However, they are marked as experimental > feature. > As I really like it, I'm always tempted to use it. > On the other hand, I don't want to wast efforts to something I have to roll > back. > > So, does anyone kn

Re: To use signatures or not to use?

2015-07-22 Thread Paul Johnson
On Wed, Jul 22, 2015 at 09:11:59PM +0200, Alex Becker wrote: > Dear all, > > Perl now has subroutine signatures. However, they are marked as > experimental feature. > As I really like it, I'm always tempted to use it. > On the other hand, I don't want to wast efforts to something I have to roll >

Re: script to parse OCR output different between servers

2015-07-22 Thread Gary Stainburn
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

To use signatures or not to use?

2015-07-22 Thread Alex Becker
Dear all, Perl now has subroutine signatures. However, they are marked as experimental feature. As I really like it, I'm always tempted to use it. On the other hand, I don't want to wast efforts to something I have to roll back. So, does anyone know the tendency if signatures are going to stay?

Re: script to parse OCR output different between servers

2015-07-22 Thread Gary Stainburn
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

Re: script to parse OCR output different between servers

2015-07-22 Thread Shlomi Fish
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

Re: script to parse OCR output different between servers

2015-07-22 Thread Gary Stainburn
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

Re: script to parse OCR output different between servers

2015-07-22 Thread Shlomi Fish
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

Re: Devel::Cover Use case

2015-07-22 Thread Shlomi Fish
Hi Piyush, On Wed, 22 Jul 2015 20:03:37 +0530 Piyush Verma <114piy...@gmail.com> wrote: > Hi Shlomi, > > Code is not using t/*.t framework, it contains .pl and .pm files. I was > trying via PERL5OPT=-MDevel:Cover > I test my code via passing different-different arguments to .pl file, Is > there

Re: Devel::Cover Use case

2015-07-22 Thread Paul Johnson
On Wed, Jul 22, 2015 at 08:17:18PM +0530, Piyush Verma wrote: > Thanks Paul, this solved me some part of problem. I was using Devel::Cover > in wrong place of .pl file. > Now putting this on start of .pl script works for me but not completely. > > There are 20 .pm modules present in my project dir

Re: Devel::Cover Use case

2015-07-22 Thread Piyush Verma
Thanks Paul, this solved me some part of problem. I was using Devel::Cover in wrong place of .pl file. Now putting this on start of .pl script works for me but not completely. There are 20 .pm modules present in my project directory but in coverage report I am able to see only 6 .pm modules. I thi

Re: Devel::Cover Use case

2015-07-22 Thread Piyush Verma
Hi Shlomi, Code is not using t/*.t framework, it contains .pl and .pm files. I was trying via PERL5OPT=-MDevel:Cover I test my code via passing different-different arguments to .pl file, Is there any way I can use coverage module e.g. enable code coverage in each file? Regards, ~Piyush Facebook <

Re: Devel::Cover Use case

2015-07-22 Thread Paul Johnson
On Wed, Jul 22, 2015 at 04:56:12PM +0300, Shlomi Fish wrote: > Hi Piyush, > > On Wed, 22 Jul 2015 19:08:20 +0530 > Piyush Verma <114piy...@gmail.com> wrote: > > > Hi, > > > > I want to collect code coverage data of my perl project which has a .pl > > file and .pm files. > > If I include this mod

script to parse OCR output different between servers

2015-07-22 Thread Gary Stainburn
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

Re: Devel::Cover Use case

2015-07-22 Thread Shlomi Fish
Hi Piyush, On Wed, 22 Jul 2015 19:08:20 +0530 Piyush Verma <114piy...@gmail.com> wrote: > Hi, > > I want to collect code coverage data of my perl project which has a .pl > file and .pm files. > If I include this module in each file, I'm getting result only of .pl file. > > Can anyone suggest ab

Devel::Cover Use case

2015-07-22 Thread Piyush Verma
Hi, I want to collect code coverage data of my perl project which has a .pl file and .pm files. If I include this module in each file, I'm getting result only of .pl file. Can anyone suggest about the use case so that I can collect code coverage data of all files. Regards, ~Piyush