NAME

Env::Dot::Functions - Read environment variables from .env file

VERSION

version 0.002

SYNOPSIS

use Env::Dot;
use Env::Dot qw( assert );

my %want = (
    options => {
        exact => 1,
    },
    variables => {
        USER => { regexp => '^[[:word:]]{1}$', required => 1 },
    },
);
my %parameters;
$parameters{'break_at_first_error'} = 1;
my $r = assert( \%ENV, $desc, \%parameters );
if( ! $r->{'success'} ) {
    say report_errors( $r->{'errors'} );
}

DESCRIPTION

This package just contains functions for use in the main package Env::Dot and in the command line tool envdot.

STATUS

Package Env::Dot is currently being developed so changes in the API are possible, though not likely.

FUNCTIONS

No functions are automatically exported to the calling namespace.

get_dotenv_vars()

Return all variables from the .env file as a hash (name/value pairs).

interpret_dotenv_filepath_var( $filepaths )

Return a list of file paths.

AUTHOR

'Mikko Koivunalho <mikkoi@cpan.org>'

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by Mikko Koivunalho.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.