NAME Begin::Eval::Env - Take code from environment variable(s), then eval them VERSION This document describes version 0.001 of Begin::Eval::Env (from Perl distribution Begin-Eval-Env), released on 2022-02-05. SYNOPSIS On the command-line: % PERL_BEGIN_EVAL_ENV='use Data::Dump; dd \%INC' perl -MBegin::Eval::Env `which some-perl-script.pl` ... % PERL_BEGIN_EVAL_ENV='use Data::Dump; dd \%INC' PERL5OPT=-MBegin::Eval::Env some-perl-script.pl ... Customize the environment variables: % perl -MBegin::Eval::Env=ENVNAME1,ENVNAME2 `which some-perl-script.pl` ... % PERL5OPT=-MBegin::Eval::Env=ENVNAME1,ENVNAME2 some-perl-script.pl ... DESCRIPTION This module allows you to evaluate code(s) in environment variable(s), basically for convenience in one-liners. If name(s) of environment variables are not specified, "PERL_BEGIN_EVAL_ENV" is the default. # INSERT_BLOCK_FROM_MODULE: End::Eval::FirstArg description ENVIRONMENT DEBUG Bool. Can be turned on to print the code to STDOUT before eval-ing it. PERL_BEGIN_EVAL_ENV HOMEPAGE Please visit the project's homepage at . SOURCE Source repository is at . SEE ALSO Other "Begin::Eval::*" modules, like Begin::Eval::FirstArg. "End::Eval::*" modules. Other Begin::* modules. AUTHOR perlancar CONTRIBUTING To contribute, you can send patches by email/via RT, or send pull requests on GitHub. Most of the time, you don't need to build the distribution yourself. You can simply modify the code, then test via: % prove -l If you want to build the distribution (e.g. to try to install it locally on your system), you can install Dist::Zilla, Dist::Zilla::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required beyond that are considered a bug and can be reported to me. COPYRIGHT AND LICENSE This software is copyright (c) 2022 by perlancar . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. BUGS Please report any bugs or feature requests on the bugtracker website When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.