source: trunk/essentials/dev-lang/perl/lib/Env.pm@ 3310

Last change on this file since 3310 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 5.0 KB
Line 
1package Env;
2
3our $VERSION = '1.00';
4
5=head1 NAME
6
7Env - perl module that imports environment variables as scalars or arrays
8
9=head1 SYNOPSIS
10
11 use Env;
12 use Env qw(PATH HOME TERM);
13 use Env qw($SHELL @LD_LIBRARY_PATH);
14
15=head1 DESCRIPTION
16
17Perl maintains environment variables in a special hash named C<%ENV>. For
18when this access method is inconvenient, the Perl module C<Env> allows
19environment variables to be treated as scalar or array variables.
20
21The C<Env::import()> function ties environment variables with suitable
22names to global Perl variables with the same names. By default it
23ties all existing environment variables (C<keys %ENV>) to scalars. If
24the C<import> function receives arguments, it takes them to be a list of
25variables to tie; it's okay if they don't yet exist. The scalar type
26prefix '$' is inferred for any element of this list not prefixed by '$'