Term::Shell::Pluggable
There is Term::Shell module in the first place. This is hybrid of that one with Module::Pluggable. So you could add command line hooks to your big and scary multi-module perl application.
http://search.cpan.org/~pin/Term-Shell-Pluggable/lib/Term/Shell/Pluggable.pm
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the perldoc command.
perldoc Term::Shell::Pluggable
You can also look for information at:
http://github.com/pin/term-shell-pluggable
COPYRIGHT AND LICENCE
Copyright (C) 2013 Dmitri Popov
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.