Permalink
Browse files

eval "load_class"

  • Loading branch information...
1 parent 1f71dc0 commit 76c117447b544cd133d453de1348b4e117087ae6 @hirose31 hirose31 committed Sep 25, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 dump-env.pl
View
@@ -20,7 +20,7 @@
sub d {
my $c = shift;
- Class::MOP::load_class($c);
- print "$c: " . ${"$c\::VERSION"}, "\n";
+ eval { Class::MOP::load_class($c); };
+ printf "%-22s: %s\n", $c, ($@ ? "MISSING" : ${"$c\::VERSION"});
}

0 comments on commit 76c1174

Please sign in to comment.