Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Storable load even with %INC modified
Modified to stop Log::Agent from loading, that is. There’s at least one CPAN module that does it. While that module could be blamed, Storable used to be more robust in this area before the AutoLoader extirpation, and there is nothing wrong with robustness.
- Loading branch information
Father Chrysostomos
committed
Nov 3, 2011
1 parent
d5d5f91
commit 24d967e
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/perl | ||
|
||
# This test script checks that Storable will load properly if someone | ||
# is incorrectly messing with %INC to hide Log::Agent. No, no-one should | ||
# really be doing this, but, then, it *used* to work! | ||
|
||
use Test::More; | ||
plan tests => 1; | ||
|
||
$INC{'Log/Agent.pm'} = '#ignore#'; | ||
require Storable; | ||
pass; |