Subject: | adding hash properties clobbers hash properties in base class |
Attached is an example which demonstrates the problem. Using
add_property to add a hash property clobbers the properties in the base
class. This is the error I get:
gato% perl -Ilib Build.PL --install_path lib=/util/lib/perl
Can't use string ("lib=/util/lib/perl") as a HASH ref while "strict
refs" in use at /home/ollisg/perl5/gato/lib/perl5/Module/Build/Base.pm
line 2240.
Subject: | Build.PL |
#!/usr/bin/env perl
package Module::Build::Foo;
use strict;
use warnings;
use base qw( Module::Build );
__PACKAGE__->add_property( foo => { x => 1, y => 2 });
package main;
my $builder = Module::Build::Foo->new(
module_name => 'Foo',
license => 'perl',
build_requires => {},
);
1;