Permalink
Browse files

object_2svref doesn't exist before 5.8.1.

  • Loading branch information...
1 parent 6a9089f commit a0a36b7e23511b3a95c131b5d23a51218e6d316f @pjcj committed Aug 23, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Devel/Cover.pm
View
@@ -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

0 comments on commit a0a36b7

Please sign in to comment.