https://github.com/drbaggy/perlweeklychallenge-club/blob/master/challenge-124/james-smith/