NAME
setenv - conveniently (re)set %ENV variables at compile time
SYNOPSIS
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,
;
DESCRIPTION
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.
VERSION
This documentation describes version 0.06.
METHODS
There are no methods.
THEORY OF OPERATION
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.
REQUIRED MODULES
(none)
AUTHOR
Elizabeth Mattijsen
COPYRIGHT
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.