Acme::Don't - search.cpan.org
DESCRIPTION
The Acme::Don't module provides a
don'tcommand, which is the opposite of Perl's built-indo.It is used exactly like the
do BLOCKfunction except that, instead of executing the block it controls, it...well...doesn't.Regardless of the contents of the block,
don'treturnsundef.You can even write:
don't { # code here } while condition();And, yes, in strict analogy to the semantics of Perl's magical
do...while, thedon't...whileblock is unconditionally not done once before the test. ;-)Note that the code in the
don'tblock must be syntactically valid Perl. This is an important feature: you get the accelerated performance of not actually executing the code, without sacrificing the security of compile-time syntax checking.
via search.cpan.org
:-)
