in reply to Re: porting C code to Perl
in thread porting C code to Perl
Hi Monk::Thomas,
The predigit value may set to 0 magically with some C compilers, I'm not sure. It's not the case on the Mac.
predigit, nines = 0;
I changed the line to this.
predigit = 0, nines = 0;
Basing on Discipulus's example, I too am interested and will try a plain Perl version. Then, will try parallelization via a number sequence for j. Thank you for the fun, fellow monks.
Regards, Mario
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: porting C code to Perl
by Monk::Thomas (Friar) on Oct 24, 2017 at 11:43 UTC | |
by marioroy (Prior) on Oct 24, 2017 at 14:33 UTC | |
by Monk::Thomas (Friar) on Oct 24, 2017 at 15:38 UTC | |
by RonW (Parson) on Oct 25, 2017 at 20:47 UTC | |
by marioroy (Prior) on Oct 24, 2017 at 15:57 UTC | |
by Anonymous Monk on Oct 24, 2017 at 17:53 UTC | |
by danaj (Friar) on Oct 26, 2017 at 01:56 UTC | |
by haukex (Archbishop) on Oct 24, 2017 at 18:00 UTC | |
by Monk::Thomas (Friar) on Oct 25, 2017 at 08:28 UTC | |
by haukex (Archbishop) on Oct 25, 2017 at 10:14 UTC |