MOP4Import::Base::CLI - Boilerplate base class for Runnable Module
#!/usr/bin/env perl package MyScript; use MOP4Import::Base::CLI -as_base; ... __PACKAGE__->run(\@ARGV) unless caller; 1;
Now superceded by MOP4Import::Base::CLI_JSON.
MOP4Import::Base::CLI is a general purpose base class to make your module also runnable from CLI easily. It helps you writing modules with small testable pieces codes.
It provides enough useful default implementation of run() method for CLI invocation.
run()
Also, this module is implemented using MOP4Import so that you can implement your own import() pragmas.
import()
App::Cmd - if your main goal is writing full-fleged CLI.
Kobayashi, Hiroaki <hkoba@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MOP4Import::Declare, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MOP4Import::Declare
CPAN shell
perl -MCPAN -e shell install MOP4Import::Declare
For more information on module installation, please visit the detailed CPAN module installation guide.