projects
/
gitmo/moose-presentations.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
83c05a5
)
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
patch
|
blob
|
blame
|
history
diff --git
a/moose-class/exercises/install-moose
b/moose-class/exercises/install-moose
index
0d8379b
..
e347e3e
100755
(executable)
--- a/
moose-class/exercises/install-moose
+++ b/
moose-class/exercises/install-moose
@@
-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' ),