NAME

PFT::Conf - Configuration parser for PFT

SYNOPSIS

PFT::Conf->new_default()        # Using default
PFT::Conf->new_load($root)      # Load from conf file in directory
PFT::Conf->new_load_locate()    # Load from conf file, find directory
PFT::Conf->new_load_locate($cwd)

PFT::Conf::locate()             # Locate root
PFT::Conf::locate($cwd)

PFT::Conf::isroot($path)        # Check if location exists under path.

use Getopt::Long;
Getopt::Long::Configure 'bundling';
GetOptions(
    PFT::Conf::wire_getopt(\my %opts),
    'more-opt' => \$more,
);
PFT::Conf::new_getopt(\%opts);  # Create with command line options

DESCRIPTION

Methods

save_to

Save the configuration to a file. This will also update the inner root reference, so the intsance will point to the saved file.