Env::D...nctions(3pm)
π Env::Dot::Functions π
okay bestie, so this is Env::Dot::Functions β a Perl module (that's the 3pm part, it's giving perldoc energy) that lives over in the User Contributed Perl Documentation corner of your system. It's the little helper friend that reads your environment variables out of a .env file. π¦
β¨ NAME β¨
Env::Dot::Functions β read environment variables from a .env file π
πΈ VERSION πΈ
version 0.022
π SYNOPSIS π
use Env::Dot::Functions qw( get_dotenv_vars interpret_dotenv_filepath_var );
# or
use Env::Dot::Functions ':all';
π DESCRIPTION π
(nothing here, bestie β the manpage just goes straight to STATUS. we respect the silence. π )
π₯ STATUS π₯
So like, this module is currently being developed, which means the API could change. Lowkey possible, but not likely β so don't spiral. π
This package is just a lil bundle of functions β it's meant to be used by the main package Env::Dot and by the command line tool envdot. That's it, that's the whole job. β¨
π FUNCTIONS π
Heads up: no functions are automatically exported to the calling namespace. You gotta ask for them by name (or':all') in youruseline. No sneaky surprises here. π
π§ get_dotenv_vars(@)
Give all the variables from the .env file back to you as a list of hashes (name/value pairs). π
And the order matters, fr fr β the list is created in the same order the variables are read from the files, which means the same variable can show up several times. Not a glitch, that's just the vibe.
But plot twist: the files themselves are read in reversed order, just like the paths in the variable PATH are used. π
Arguments:
filepaths, list of dotenv filepaths.
β οΈ If a file does not exist, we break the execution. No file, no mercy. π
π¦ interpret_dotenv_filepath_var( $filepaths )
Return a list of file paths. That's the whole thing, she's simple and she's slaying. β
πΈ get_envdot_filepaths_var_name
Return the name of the environment variable which the user can use to specify the paths of .env files. (yes, that's the entire description. icon behaviour.) π
π extract_error_msg
Extract the elements of an error message (exception): err, line and filepath. Unpack the drama into its three lil pieces. π
π create_error_msg
Create an error message (exception) from the three elements: err, line and filepath. Glue the drama back together. β¨
π 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. π
and that's the whole page, bestie!! this was generated for perl v5.40.1, dated 2026-05-09, under the Env::Dot::Functions(3pm) name β mwah, go read ur .env files responsibly π
β¨
π¦ where this page comes from
- ubuntu stonking: env-dot 0.022-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms