fix error when use lib is used dynamic variables #4

Merged
merged 2 commits into from Jan 25, 2014

Conversation

Projects
None yet
2 participants
Contributor

benwbooth commented Jan 25, 2014

I ran into an issue where lib::xi was crashing:

Empty compile time value given to use lib at .//shubagooba/vhosts.d/server.lbl.gov/cgi-bin/sgd/f.pl line 6.
Empty compile time value given to use lib at .//shubagooba/vhosts.d/server.lbl.gov/cgi-bin/sgd/f.pl line 7.
Use of uninitialized value $_ in hash element at /Users/ben/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1/lib/xi.pm line 34.
BEGIN failed--compilation aborted at .//shubagooba/vhosts.d/server.lbl.gov/cgi-bin/sgd/f.pl line 10.
make: *** [check] Error 255

It was due to some code that looked like this:

# These should be set in the web server or environment
use lib $ENV{BIOPERL_MODULE_PATH};
use lib $ENV{INSITU_MODULE_PATH};

The supplied patch fixes the issue for me.

Owner

gfx commented Jan 25, 2014

Looks good. Thanks for the patch!

gfx added a commit that referenced this pull request Jan 25, 2014

Merge pull request #4 from benwbooth/master
fix error when use lib is used dynamic variables

@gfx gfx merged commit 767edf0 into gfx:master Jan 25, 2014

gfx added a commit that referenced this pull request Jan 25, 2014

Checking in changes prior to tagging of version 1.03.
Changelog diff is:

diff --git a/Changes b/Changes
index 276cb8a..8149a3d 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@ Revision history for Perl extension lib::xi

 {{$NEXT}}

+1.03 2014-01-25T02:44:40Z
+    - Fix more UUV warnings (#4)
+
 1.02 2013-11-20T11:50:29Z
     - Fix UUV warnings (#3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment