Algorithm::MasterMind is a Perl module that includes common functions used in Mastermind solvers; it should not be used directly, but from derived classes. See examples in Algorithm::MasterMind::Random, for instance.
use Algorithm::MasterMind::Solver; # Change "solver" to your own.
my $solver = new Algorithm::MasterMind::Solver $options;
my $first_string = $solver->issue_first();
$solver->feedback( check_combination( $secret_code, $first_string) );
my $played_string = $solver->issue_next;
$solver->feedback( check_combination( $secret_code, $played_string) );
#And so on until solution is found