The get_options Argument to new()

"John M. Gamble" <[email protected]> Fri, 16 Nov 2012 18:53:36 -0600
Newsgroups gmane.comp.lang.perl.modules.module-build
Message-ID <[email protected]>
I managed to get around this using the args() method, so this isn't a
critical problem. But I was wondering if I used the get_options argument
incorrectly.

What I had was:

my $test_all =3D 0;

my $build =3D Module::Build->new(
my $build =3D $class->new(

	license =3D> 'perl',

	get_options =3D> {
		Testall =3D> {store =3D> \$test_all},
	},
#... etc.
);

$build->create_build_script;

It creates the Build file correctly, but when I try the command

Build test --Testall

I get the error message

Modification of a read-only value attempted at
C:/Perl64/lib/Getopt/Long.pm line 561.

Is this an error in Module::Build handling or an error on my part?

I'm using Activestate perl v5.14.1 built for MSWin32-x64-multi-thread, an=
d
version 2.38 of Getopt-Long.

Thanks,
     -john