#!/usr/bin/perl use strict; # https://rosettacode.org/wiki/Verhoeff_algorithm use warnings; my @inv = qw(0 4 3 2 1 5 6 7 8 9); my @d = map [ split ], split /\n/, <