The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

version 0.013

SYNOPSIS

    use Env::Dot::Functions qw( get_dotenv_vars interpret_dotenv_filepath_var );

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 list of hashes (name/value pairs). This list is created in the same order the variables are read from the files and may therefore contain the same variable several times.

The files, however, are read in reversed order, just like paths in variable PATH are used.

interpret_dotenv_filepath_var( $filepaths )

Return a list of file paths.

get_envdot_filepaths_var_name

Return the name of the environment variable which user can use to specify the paths of .env files.

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.