aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-01-12 13:58:57 +0000
committerStruan Donald <struan@exo.org.uk>2012-01-12 13:58:57 +0000
commit823ad1912fb8c23786bc24fe85bec609469453a5 (patch)
tree2064122b148cfa5f9126458e1f14f12b50444d2b
parent8b9396bc92caad2610b51615c85552430af17c71 (diff)
move location of use List::MoreUtils to make sure we get our version
-rwxr-xr-xsetenv.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/setenv.pl b/setenv.pl
index b48c5697a..b0cf94a78 100755
--- a/setenv.pl
+++ b/setenv.pl
@@ -3,8 +3,6 @@
use strict;
use warnings;
-use List::MoreUtils 'uniq';
-
my $root;
BEGIN { # add the local perllibs too
@@ -28,6 +26,10 @@ for ( "$root/commonlib/perllib", "$root/perllib" ) {
$ENV{PERL5LIB} = "$_:$ENV{PERL5LIB}";
}
+# need to make sure we fetch this after our libs are in INC as some
+# vendor provided versions are old an incompatible with Moose
+use List::MoreUtils 'uniq';
+
# also set the path to our scripts etc
$ENV{PATH} = join ':', uniq "$root/bin", split( m/:/, $ENV{PATH} );