Lab::Moose::DataFolder - Create a data directory with meta data.
A data logging setup consists of one Lab::Moose::DataFolder and one or more Lab::Moose::DataFile objects which live inside the DataFolder.
my $folder = Lab::Moose::DataFolder(path => 'foldername');
The actual foldername will consist of the path argument and a numeric suffix. Calling this function repeatedly will create the directories foldername_001, foldername_002, ..., foldername_999, foldername_1000.
path
After creation, the actual filename is contained in the path attribute:
my $path = $folder->path();
This method will create the following files in the folder:
A copy of the user script. You can change the name of this script by setting the script_name attribute in the constructor.
script_name
A YAML file containing meta data. The Lab::Moose::DataFile::Meta object is contained in the meta_file attribute:
meta_file
my $meta_file = $folder->meta_file();
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.