projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add some tests
[gitmo/Mouse.git]
/
lib
/
Mouse
/
Object.pm
diff --git
a/lib/Mouse/Object.pm
b/lib/Mouse/Object.pm
index
911954d
..
8aa22b5
100644
(file)
--- a/
lib/Mouse/Object.pm
+++ b/
lib/Mouse/Object.pm
@@
-71,7
+71,7
@@
sub dump {
require 'Data/Dumper.pm'; # we don't want to create its namespace
my $dd = Data::Dumper->new([$self]);
- $dd->Maxdepth($maxdepth || 1);
+ $dd->Maxdepth(defined($maxdepth) ? $maxdepth : 1);
return $dd->Dump();
}