Skip to content

Commit

Permalink
Collapse DEBUG to 1 line
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Dec 17, 2014
1 parent 1d55fa1 commit daec426
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/Inline/Module.pm
Expand Up @@ -17,13 +17,7 @@ sub new {
}

use constant DEBUG_ON => $ENV{PERL_INLINE_MODULE_DEBUG} ? 1 : 0;
sub DEBUG {
if (DEBUG_ON) {
print ">>>>>> ";
printf @_;
print "\n";
}
}
sub DEBUG { if (DEBUG_ON) { print "DEBUG >>> ", sprintf(@_), "\n" }}

#------------------------------------------------------------------------------
# This import serves multiple roles:
Expand Down

0 comments on commit daec426

Please sign in to comment.