Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can someone explain to me why, sometimes, %INC contains empty values? For example:
( "A.pm" => "/usr/share/perl/5.xx/A.pm", "B.pm" => undef, ... )
The problem is, I can't pinpoint or reproduce this right now. I've encountered this more than a couple of times, first on a laptop, then on a server, causing this code if ($INC{$mod}) { eval { require $mod } } to fail.
Does undef value on an entry in %INC have any useful meaning? Or is it a bug with some code, somewhere that sets %INC? I'm pretty sure none of my code modifies %INC in anyway. Have someone experienced this too?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Undefined entries in %INC?
by ig (Vicar) on Aug 28, 2012 at 06:08 UTC | |
|
Re: Undefined entries in %INC?
by Anonymous Monk on Aug 28, 2012 at 02:24 UTC |