Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

object_2svref doesn't exist before 5.8.1.

  • Loading branch information...
commit a0a36b7e23511b3a95c131b5d23a51218e6d316f 1 parent 6a9089f
@pjcj authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Devel/Cover.pm
View
3  lib/Devel/Cover.pm
@@ -587,7 +587,8 @@ sub check_files
# subs in some modules don't seem to be around when we get to looking at
# them. I'm not sure why this is, and it seems to me that this hack could
# affect the order of destruction, but I've not seen any problems. Yet.
- @Subs = map $_->object_2svref, @Cvs;
+ # object_2svref doesn't exist before 5.8.1.
+ @Subs = map $_->object_2svref, @Cvs if $] >= 5.008001;
}
sub report
Please sign in to comment.
Something went wrong with that request. Please try again.