Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Sudoku generator

by Arunbear (Prior)
on Aug 05, 2005 at 09:28 UTC ( [id://481151]=note: print w/replies, xml ) Need Help??


in reply to Sudoku generator

Instead of
die "ASSERT( $row, $col )" unless Crd2Index( $row, $col ) < Squared;
why not use Carp::Assert :
use Carp::Assert; ... assert(Crd2Index( $row, $col ) < Squared, "Crd2Index( $row, $col ) < Squared") if DEBUG;

Also see Gratuitous use of Perl Prototypes

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://481151]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found