Module::TestConfig

Interactively prompt user to generate a config module
Download

Module::TestConfig Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Joshua Keroes
  • Publisher web site:
  • http://search.cpan.org/~joshua/

Module::TestConfig Tags


Module::TestConfig Description

Interactively prompt user to generate a config module Module::TestConfig is a Perl module that prompts a user for info and writes a module for later use. You can use it during the module build process (e.g. perl Makefile.PL) to share info among your test files. You can also use it to install that module into your site_perl.Module::TestConfig writes an object-oriented file. You specify the file's location as well as the package name. When you use() the file, each of the questions' names will become an object method.SYNOPSIS use Module::TestConfig; Module::TestConfig->new( verbose => 1, defaults => 'defaults.config', file => 'MyConfig.pm', package => 'MyConfig', order => , questions => , , ] )->ask->save;# and in another module or test file: use MyConfig; my $config = MyConfig->new; print $config->tea eq 'y' ? "We're having tea today; splendid!" : "No tea, I'm afraid. P'raps tomorrow."; print $config->crumpets eq 'y' ? "Crumpets; lovely!" : "Alas, we have no crumpets today"; Requirements: · Perl


Module::TestConfig Related Software