From c47eb99831d540534bc11512d922080780665b82 Mon Sep 17 00:00:00 2001 From: Florian Ragwitz Date: Fri, 18 Feb 2011 20:06:55 +0100 Subject: Don't call the new __loaded_from_core on old perls On perls that don't have deprecate::__loaded_from_core yet, dprofpp isn't deprecated yet, so all is good. --- ext/Devel-DProf/bin/dprofpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/Devel-DProf/bin/dprofpp b/ext/Devel-DProf/bin/dprofpp index f529b8cb28..51d0ed9d9b 100644 --- a/ext/Devel-DProf/bin/dprofpp +++ b/ext/Devel-DProf/bin/dprofpp @@ -15,8 +15,8 @@ BEGIN { require Devel::DProf; require deprecate; -if(deprecate::__loaded_from_core('Devel::DProf', $INC{'Devel/DProf.pm'}, - 'Devel/DProf.pm')) { +if($] > 5.013009 && deprecate::__loaded_from_core('Devel::DProf', $INC{'Devel/DProf.pm'}, + 'Devel/DProf.pm')) { warn "dprofpp will be removed from the Perl core distribution in the next major release. Please install Devel::DProf from CPAN.\n"; } -- cgit v1.2.1