The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Spreadsheet::Compare::Common - convenient imports for Spreadsheet::Compare Modules

DESCRIPTION

This module injects various Modules and functions into the namespace of the caller:

In addition it enables the postderef feature and extends the has function of Mojo::Base with an ro option to specify that the attribute is readonly, e.g.:

    use Mojo::Base -base, -signatures;
    use Spreadsheet::Compare::Common;

    has thing => 42, ro => 1;

If the module is loaded with the "test" option set to a true value,

    use Spreadsheet::Compare::Common test => 1;

    ... use test functions

it will additionally inject the following:

The test option can be extended with a "temp" option. This will create a temporary directory in the "t" directory starting with the test file name. (e.g. t/01_base_V3CQ for t/01_base.t). By default it will be cleaned up afterwards. To keep the directory set the environment variable SPREADSHEET_COMPARE_CLEANUP to a true value. The absolute name of the temp directory will be available in the environment variable SC_TMPD

    use Spreadsheet::Compare::Common test => 1, temp => 1;

    ... save temp data to $ENV{SC_TMPD}