or download this
my @counterexamples;
my %digits = map { $_ => 1 } 0 .. 9;
for ( 1 .. 10000 ) {
...
or diag +Data::Dumper->Dump( [ \@counterexamples ], ['*bad_pins']
+);
ok !%digits, '... and all digits should be used'
or diag sprintf "Unused digits are '%s'", join ', ', sort keys %di
+gits;