1# subclass for testing customizing & subclassing 2 3package MyPerlSourceHandler; 4 5use strict; 6use vars '@ISA'; 7 8use MyCustom; 9use TAP::Parser::IteratorFactory; 10use TAP::Parser::SourceHandler::Perl; 11 12@ISA = qw( TAP::Parser::SourceHandler::Perl MyCustom ); 13 14TAP::Parser::IteratorFactory->register_handler(__PACKAGE__); 15 16sub can_handle { 17 my $class = shift; 18 my $vote = $class->SUPER::can_handle(@_); 19 $vote += 0.1 if $vote > 0; # steal the Perl handler's vote 20 return $vote; 21} 22 231; 24 25