PrePAN

Sign in to PrePAN

Modulino::Base Hide all the tricky modulino bits in a module

Good

Synopsis

use Modulino::Base; # handles all of the details

sub run { ... }

Description

I'm creating this for Mastering Perl. My idea is to have a base class that can provide several modulino features (automatically calling run(), or turning the module into a test file).

Comments

I could actually use this *this week* to write a base class for a daemon, but instead it will be a bit more work with a class in lib/ and tiny wrapper that lives in bin/.
I've got a similar module based on your idea: Devel::Main.
Indenting in Modulino::Base is awful (commit 0f8b1b9). Is it really how your code is formatted in the book?

Please sign up to post a review.