Amusing programming construct that I am using for sanity checking

Start out from a known state …

my $dryrun    = false;
my $debug     = false;
my <strong>$sanity</strong>     = false;

Heh …

Maybe I should create a function with a probability distribution (a fuzzy function) named “is_in_doubt()” so I can write

my $sanity = &is_in_doubt();

(and yes, this is Perl … I just can’t bring myself to go back to a language that thinks indentation is a good and necessary thing for program structure … 🙁 )

Viewed 13001 times by 2852 viewers

Facebooktwittergoogle_plusredditpinterestlinkedinmail