Myco::Install - support library for installation system scripts
0.01
$Revision$ $Date$
#!/usr/bin/perl -w use strict; use FindBin; use lib "$FindBin::Bin/../lib"; use Myco::Install qw(:all);
This module exports function used by the installation system scripts.
Prints out an error message and returns 0. Usually used to soft-fail a test like:
return soft_fail("Couldn't find Postgres...") unless ...;
This saves a few lines since the alternative would be:
unless(...) { print "Couldn't find Postgres...\n"; return 0; }
Prints out an error message surrounded by lines of hash marks and exits with code 1.
Asks the user a yes/no question. Default to $default if they just press [return]. Returns 1 for a yes answer and 0 for no.
Asks the user to confirm a setting. If they enter a new value asks "are you sure." Directly updates the setting and returns when done.
A default setting of "NONE" will force the user to enter a value.
Asks the user to choose from a list of options. Returns the option selected.
NONE.
Sam Tregar, originally Bric::Inst
Myco::Admin
To install Myco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myco
CPAN shell
perl -MCPAN -e shell install Myco
For more information on module installation, please visit the detailed CPAN module installation guide.