MYDan::Util::DirConf - Interface module: directory configuration with a YAML file.
use base MYDan::Util::DirConf; sub define { qw( log code ) }; my $conf = MYDan::Util::DirConf->new( '/conf/file' ); my $conf->make() if ! $conf->check; my $conf = $conf->path(); ## HASH ref my $logdir = $conf->path( 'log' ); my $logfile = $conf->path( log => 'foobar.log' );
Inspect directories. Returns true if all directories exist, false otherwise.
Set up directories. Returns invoking object.
Join a known path name with @name. See File::Spec->join().
Replace $RealBin and $Bin in $path
To install MYDan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MYDan
CPAN shell
perl -MCPAN -e shell install MYDan
For more information on module installation, please visit the detailed CPAN module installation guide.