Subject: | Cannot create an object with verbose enabled |
# Regression test
my $Object = CPAN::Dependency->new(
process => 'Any::Module',
verbose => 1,
);
isa_ok( $Object );
The line causing the problem is
145: $self->$attr($args{$attr}) and delete $args{$attr} if $self->can($attr);
If you step through in the debugger you should spot why this is a problem pretty quickly.