README
1Shell-EnvImporter version 0.01
2==============================
3
4Shell::EnvImporter allows you to import environment variables set in an external
5shell script into the environment of a Perl script. For instance, if your
6ORACLE_HOME variable is set in ~oracle/.bashrc, you can use Shell::EnvImporter
7to import it thus:
8
9 my $importer = Shell::EnvImporter->new(file => glob("~oracle/.bashrc"));
10
11This imports all variables added or changed by ~oracle/.bashrc into the
12current environment (%ENV). By using Shell::EnvImporter's advanced
13features, one can exert more control over the process -- which shell is
14required, which variables are imported, etc.
15
16Currently supported shells: bash, csh, ksh, sh, tcsh, zsh, and of course,
17perl. :)
18
19INSTALLATION
20
21To install this module type the following:
22
23 perl Makefile.PL
24 make
25 make test
26 make install
27
28DEPENDENCIES
29
30This module requires these other modules and libraries:
31
32 Class::MethodMaker (>= v2)
33 IO::Handle
34 IO::Select
35 IPC::Open3
36
37
38COPYRIGHT AND LICENCE
39
40 Copyright (C) 2005-2006 by Dave Faraldo
41
42 This library is free software; you can redistribute it and/or modify it
43 under the same terms as Perl itself. No warranty is expressed or implied.
44
45