Work with both newer and older CPAN versions
Dave Rolsky [Fri, 5 Feb 2010 17:18:56 +0000 (11:18 -0600)]
moose-class/exercises/install-moose

index 0d8379b..e347e3e 100755 (executable)
@@ -4,7 +4,12 @@ use Cwd qw( abs_path );
 use CPAN;
 use File::Spec;
 
-CPAN::Config->load;
+if ( CPAN::HandleConfig->can('load') ) {
+    CPAN::HandleConfig->load();
+}
+else {
+    CPAN::Config->load();
+}
 
 $CPAN::Config->{urllist} =
     [ 'file://' . File::Spec->catdir( abs_path(q{.}), 'moosepan' ),