X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Flocal%2Flib.pm;h=128648cea623858ebe350ef0c30b30bd16f2ea5b;hb=4f9db5b432f6e19df7c489bb05c4d1cfcca978a2;hp=a436a71f1805753d38710ab24523603c9678539f;hpb=8c6c886f4a496c6dac84f8ada7de7e72dc9d2cef;p=p5sagit%2Flocal-lib.git diff --git a/lib/local/lib.pm b/lib/local/lib.pm index a436a71..128648c 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -11,7 +11,7 @@ use File::Path (); use Carp (); use Config; -our $VERSION = '1.004008'; # 1.4.7 +our $VERSION = '1.004009'; # 1.4.9 my @KNOWN_FLAGS = (qw/--self-contained/); sub import { @@ -21,7 +21,7 @@ Please see `perldoc local::lib` for directions on using this module. DEATH # Remember what PERL5LIB was when we started - my $perl5lib = $ENV{PERL5LIB}; + my $perl5lib = $ENV{PERL5LIB} || ''; my %arg_store; for my $arg (@args) { @@ -157,7 +157,6 @@ sub resolve_home_path { my ($user) = ($path =~ /^~([^\/]+)/); # can assume ^~ so undef for 'us' my $tried_file_homedir; my $homedir = do { - no warnings 'numeric'; # Disable warning caused by version comparison with dev releases.. if (eval { require File::HomeDir } && $File::HomeDir::VERSION >= 0.65) { $tried_file_homedir = 1; if (defined $user) {