From: Vincent Pit Date: Tue, 14 Apr 2009 23:42:48 +0000 (+0200) Subject: Don't import Config into Test::Valgrind::Tool::memcheck::Report X-Git-Tag: v1.02~16 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=71f41a8e226d5e9b2d8f42145d6499e0a940aa28;p=perl%2Fmodules%2FTest-Valgrind.git Don't import Config into Test::Valgrind::Tool::memcheck::Report --- diff --git a/lib/Test/Valgrind/Tool/memcheck.pm b/lib/Test/Valgrind/Tool/memcheck.pm index a9da30b..035b855 100644 --- a/lib/Test/Valgrind/Tool/memcheck.pm +++ b/lib/Test/Valgrind/Tool/memcheck.pm @@ -186,8 +186,6 @@ package Test::Valgrind::Tool::memcheck::Report; use base qw/Test::Valgrind::Report/; -use Config qw/%Config/; - our $VERSION = '1.01'; my @kinds = qw/ @@ -217,7 +215,11 @@ sub valid_kind { exists $kinds_hashed{$_[1]} } sub is_leak { $_[0]->kind =~ /^Leak_/ ? 1 : '' } -my $pad = 2 * ($Config{ptrsize} || 4); +my $pad; +BEGIN { + require Config; + $pad = 2 * ($Config::Config{ptrsize} || 4); +} sub dump { my ($self) = @_;