in reply to Re: John Guttag's book - 2nd exercise. My attempt in Perl.
in thread John Guttag's book - 2nd exercise. My attempt in Perl.

Hi,

Modulo Operator can be used as I've used in my code. Sorry I should've stated that earlier.

Thinkpad T430 with Ubuntu 16.04.2 running perl 5.24.1 thanks to plenv!!