Andrew Pimlott wrote > stop on the first error. If you write > > foo($bar, $baz, 0, 1); > > you might forget what they mean. If you write > > foo($bar, $baz, !VERBOSE, STOP_ON_ERROR); > > it's obvious.
OK. But just a minor point: Using constants as in "use constant" requires you to have VERBOSE and STOP_ON_ERROR or whatever without initial sigils. This is bad for the readability of your program (in particular with a syntax-coloring editor), and these constants also do not interpolate nicely in strings. So I'd rather write $VERBOSE and $STOP_ON_ERROR, living with the minor risk that I might inadvertently change the values. Joachim