Subject: | Improper use of $self->{config} |
I noticed some warnings during the build process.
Use of uninitialized value in substitution (s///) at
/private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm
line 9.
Use of uninitialized value in substitution (s///) at
/private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm
line 10.
Use of uninitialized value in concatenation (.) or string at
/private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm
line 11.
Use of uninitialized value in concatenation (.) or string at
/private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm
line 11.
This is because $self->{config}{lddlflags} is not defined, in fact its
almost empty.
DB<2> n
My::Builder::compile_c(/private/var/local/cpan_shell/build/B-Generate-1.09-wiiPcm/_build/lib/My/Builder.pm:9):
9: $self->{config}->{lddlflags} =~
s/-flat_namespace/-twolevel_namespace/;
DB<2> x $self->{config}
0 Module::Build::Config=HASH(0x1a4a8b0)
'stack' => HASH(0x1a49934)
empty hash
'values' => HASH(0x1a59f8c)
empty hash
I think you're supposed to work with $self->{config} via methods like
get() and set().
This is with Module::Build 0.2808 on OS X 10.4.10 w/5.8.8.