Skip to content

Instantly share code, notes, and snippets.

@benui-dev
Created August 16, 2010 01:33
Show Gist options
  • Save benui-dev/526224 to your computer and use it in GitHub Desktop.
Save benui-dev/526224 to your computer and use it in GitHub Desktop.
# Hack to make Carp::Assert work with Log4perl
# Stops warnings like "Prototype mismatch: sub Foo::DEBUG: none vs () at ...
BEGIN {
use Carp::Assert;
use Carp::Assert::More;
*ADEBUG = *DEBUG;
undef *DEBUG;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment