1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package MyMBClass; use strict; use warnings; use base 'Module::Build'; sub new { my $class = shift; my $self = $class->SUPER::new(@_); if ( defined( my $pp = $self->args('pp') ) ) { $self->pureperl_only($pp); } return $self; } 1;