in reply to Sudoku generator
Instead of
why not use Carp::Assert :die "ASSERT( $row, $col )" unless Crd2Index( $row, $col ) < Squared;
use Carp::Assert; ... assert(Crd2Index( $row, $col ) < Squared, "Crd2Index( $row, $col ) < Squared") if DEBUG;
Also see Gratuitous use of Perl Prototypes
In Section
Cool Uses for Perl