How to do it - Bread::Board
file: code/BreadBoard/find_new_series.pl 7: use MyBB; 8: 9: my $bb = MyBB->setup; 10: 11: my $fns = $bb->resolve( service => 'FindNewSeries' ); 12: say $fns->run;
Bread::Board will init all dependencies, pass them to the class and return a ready-to-use object