#!/usr/local/bin/perl # This is about the simplest solver I can come up with use Games::Sudoku::General; my $su = Games::Sudoku::General->new (); my $puzzle = <problem ($puzzle); print "\nSolution:\n"; if (my $soln = $su->solution ()) { print $soln, "\nConstraints used: ", scalar $su->constraints_used, "\n"; } else { print "No solution found.\n"; }