in reply to Re: Use of uninitialized value in require at ...AutoLoader.pm ?
in thread Use of uninitialized value in require at ...AutoLoader.pm ?
The first few lines are:
package AutoLoader; use strict; use 5.006_001; our($VERSION, $AUTOLOAD); my $is_dosish; my $is_epoc; my $is_vms; my $is_macos; BEGIN { $is_dosish = $^O eq 'dos' || $^O eq 'os2' || $^O eq 'MSWin32' || $ +^O eq 'NetWare'; $is_epoc = $^O eq 'epoc'; $is_vms = $^O eq 'VMS'; $is_macos = $^O eq 'MacOS'; $VERSION = '5.60'; } AUTOLOAD { my $sub = $AUTOLOAD;
This is the same code as that cited by Anonymous Monk in http://search.cpan.org/~nwclark/perl-5.8.8/lib/AutoLoader.pm.
Lines 91-2 say:
where the previous block (most of the AUTOLOAD sub, in fact) goes to great lengths to establish $filename.local $!; # Do not munge the value. eval { local $SIG{__DIE__}; require $filename };
ikegami, I don't believe DDSutils is involved. That just exports a couple of subs and some quasi-constants.No clever BEGIN/END stuff.
I observed that the Autoloader module does not itself use warnings; - I am reminded of another situation in the past where a CPAN module (I don't recall which) peppered my web server error log with warnings when my code ran under #!/usr/bin/perl -w because my invocation was imposing warningfulness on it. . That went away when I replaced #!/usr/bin/perl -w with use warnings; which kept my warnable condition to my own scope. I am just wondering whether something similar could be happening with regard to diagnostics but it seems rather far fetched.
Update: Forgot to say:
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi ; out-of-the-box Ubuntu 8.04 LTS.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of uninitialized value in require at ...AutoLoader.pm ?
by jvector (Friar) on Oct 22, 2008 at 09:18 UTC | |
|
Re^3: Use of uninitialized value in require at ...AutoLoader.pm ?
by ikegami (Patriarch) on Oct 22, 2008 at 21:05 UTC | |
by jvector (Friar) on Oct 24, 2008 at 08:49 UTC | |
by ikegami (Patriarch) on Oct 24, 2008 at 09:01 UTC | |
by jvector (Friar) on Oct 24, 2008 at 09:29 UTC |