in reply to Re: WitchTest - A Tool For Determining If A Woman Is Guilty Of Witchcraft
in thread WitchTest - A Tool For Determining If A Woman Is Guilty Of Witchcraft

But that means that if there's a fatal error during the test, the result is (s)he ain't a witch. Perhaps better:
my $is_dead = ($is_witch) = !eval {!witch_test($suspect)};
Then if there's a failure in the test equipment, it can be blamed on the evil powers of the subject, and (s)he then must be a witch.
  • Comment on Re^2: WitchTest - A Tool For Determining If A Woman Is Guilty Of Witchcraft
  • Download Code

Replies are listed 'Best First'.
Re^3: WitchTest - A Tool For Determining If A Woman Is Guilty Of Witchcraft
by ikegami (Patriarch) on Jul 02, 2009 at 15:31 UTC
    Your recommended fix won't work. $is_dead will always be equal to 1 (the number of values returned by !eval{}).