Env::Array - perl module that imports environment variables as arrays
use Env::Array qw(PATH :);
The Perl module Env::Array allows environment variables to be treated as array variables, much the way that the module Env them to be treated as scalar variables.
Env::Array
Env
The Env::Array::import() function requires pairs of environment variable names and delimiter strings to be presented in the use statement. Unlike Env, there is no default behavior when no arguments are given to use (except to print an error message and die).
use
After an environment variable is tied, just use it like an ordinary array. Bear in mind, however, that each access to the variable requires splitting the string anew.
Requires Perl 5.005 or later for proper operation due to the use of tied arrays.
Gregor N. Purdy <gregor@focusresearch.com>
Copyright (C) 1999 Gregor N. Purdy. 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 Env::Array, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Env::Array
CPAN shell
perl -MCPAN -e shell install Env::Array
For more information on module installation, please visit the detailed CPAN module installation guide.