Env::D...nctions(3pm)

πŸ“¦
version 0.022 Β· 3 versions
, in ubuntu stonking

πŸ’– 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 your use line. 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> 🫢


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