in reply to Style: buried variables or double referencing?

And while we are at it how about a...

use Carp::Assert; assert ($some_variable eq 'x' or $some_variable eq 'y') if DEBUG;

...before we enter this piece of code.

-Andrew.


Andrew Tomazos  |  andrew@tomazos.com  |  www.tomazos.com