Lab::Moose::DataFolder - Create a data directory with meta data
version 3.653
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->new(path => 'foldername'); # or equivalently use Lab::Moose loader: use Lab::Moose; my $folder = 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();
This software is copyright (c) 2018 by the Lab::Measurement team; in detail:
Copyright 2016 Simon Reinhardt 2017 Andreas K. Huettel, Simon Reinhardt 2018 Andreas K. Hüttel, Simon Reinhardt
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
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.