Chris Dolan wrote:
Code like this solved a similar problem for me:

sub ACTION_test {
   my $self = shift;
   my $ok = $self->SUPER::ACTION_test;
   if ($ok) {
       $ok = do { ... my code to run *additional* tests ... };
   }
   return $ok;
}

But perhaps that that is not applicable in your case?

Yes, my case assumes a complete override. An example is here in an old version of Alien::SVN.
http://search.cpan.org/src/MSCHWERN/Alien-SVN-1.4.5.2/inc/My/SVN/Builder.pm

Notice that ACTION_test() is a complete override to call the bundled subversion tests and it fails to run depends_on('code'). ACTION_install() is more like your code above in that it only adds to the behavior, not replaces it.


Otherwise, I think your depends hash is a fine solution.

Thanks.


--
Defender of Lexical Encapsulation

Reply via email to