Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The get_options Argument to new()

6 views
Skip to first unread message

John M. Gamble

unread,
Nov 16, 2012, 7:53:36 PM11/16/12
to Module Build
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 = 0;

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

license => 'perl',

get_options => {
Testall => {store => \$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, and
version 2.38 of Getopt-Long.

Thanks,
-john


0 new messages