LEOCHARRE-Dev
view release on metacpan or search on metacpan
bin/cpanupload view on Meta::CPAN
#-------------------------------------------------------------------
$| = 1;
($PROGRAM = $0) =~ s!^.*/!!;
#-------------------------------------------------------------------
# Create an AppConfig::Std object, and define our interface
# The EXPAND flag on password tells AppConfig not to try and
# expand any embedded variables - eg if you have a $ sign
# in your password.
#-------------------------------------------------------------------
$HOME = $ENV{'HOME'} || (getpwuid($<))[7];
$config_file = "$HOME/.pause";
if (-e $config_file && ((stat($config_file))[2] & 36) != 0)
{
die "$PROGRAM: your config file $config_file is readable by others!\n";
}
$config = AppConfig::Std->new();
$config->define('user');
$config->define('directory', {ARGCOUNT => 1, ALIAS => 'dir'});
$config->define('password', { EXPAND => 0 });
$config->define('mailto');
( run in 0.273 second using v1.01-cache-2.11-cpan-8d75d55dd25 )