setenv - conveniently (re)set %ENV variables at compile time
no setenv; # BEGIN { %ENV = () } no setenv qw( FOO BAR ); # BEGIN { delete @ENV{ qw( FOO BAR ) } } use setenv # BEGIN { $ENV{FOO} = 1, $ENV{BAR} = 2 } FOO => 1, BAR => 2, ;
Provide a simple way to (re)set %ENV variables at compile time. Usually used during debugging only. This is just syntactic sugar, without any additives.
%ENV
This documentation describes version 0.04.
There are no methods.
Since "import" and "noimport" are called by Perl at compile time when doing a use or no, it will perform any (re)setting of %ENV at that time.
use
no
(none)
Elizabeth Mattijsen
Copyright (c) 2008, 2012 Elizabeth Mattijsen <liz@dijkmat.nl>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install setenv, copy and paste the appropriate command in to your terminal.
cpanm
cpanm setenv
CPAN shell
perl -MCPAN -e shell install setenv
For more information on module installation, please visit the detailed CPAN module installation guide.