X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=blobdiff_plain;f=lib%2Flocal%2Flib.pm;h=e00b22196ce45c0a06bf16f0144b449e0fbb792b;hp=ffed3ea5772d23f98aba1046f92be3e44d29ff3a;hb=cd3eb7416ab4d62d03215848df230c1b6c469050;hpb=d4ccf2eafc8ae8185ff6136db3093c181c2bffca diff --git a/lib/local/lib.pm b/lib/local/lib.pm index ffed3ea..e00b221 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -8,7 +8,6 @@ use 5.008001; # probably works with earlier versions but I'm not supporting them use File::Spec (); use File::Path (); -use Carp (); use Config; our $VERSION = '1.008004'; # 1.8.4 @@ -175,6 +174,7 @@ sub resolve_home_path { } }; unless (defined $homedir) { + require Carp; Carp::croak( "Couldn't resolve homedir for " .(defined $user ? $user : 'current user') @@ -1015,6 +1015,8 @@ G. de Oliveira . Improvements to stacking multiple local::lib dirs and removing them from the environment later on contributed by Andrew Rodland . +Patch for Carp version mismatch contributed by Hakim Cassimally . + =head1 COPYRIGHT Copyright (c) 2007 - 2010 the local::lib L and L as