Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Sudoku generator

by Arunbear (Parson)
on Aug 05, 2005 at 09:28 UTC ( #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
Node Status?
node history
Node Type: note [id://481151]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-12-17 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (464 votes). Check out past polls.

    Notices?