Permalink
Browse files

Use $DEBUG variable to switch on debug.

  • Loading branch information...
1 parent 1882f3e commit 1aeeec5d5f68a230c38c58643c030a8f661510a8 @bacek bacek committed Jan 30, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/YAML/Tiny.pm
View
@@ -362,8 +362,9 @@ method _read_hash(%hash, @indent, @lines) {
1;
}
+our $DEBUG;
sub debug($message, *@params) {
- if 0 {
+ if $DEBUG {
print("$message: ");
_dumper(@params);
}

0 comments on commit 1aeeec5

Please sign in to comment.