setting the environment variables in perl

From: Jason Corbett (jcorbett000_at_yahoo.com)
Date: 07/27/04


Date: Tue, 27 Jul 2004 07:29:45 -0700 (PDT)
To: perl beginners <beginners@perl.org>

How does one go about assuring that the environment variables are properly set in perl? I read several books, but none go in depth about how to write a script that includes all the required variables, that way nothing gets left out.
 
Please advise.
 
JC
 
[snipet]
 
 
#!/usr/bin/perl -w

$ENV{"ORACLE_HOME"}="/orav101/oracle/8.1.7";

use strict;
use DBI;
use lib '/home/samcsm/jason/myperl/lib/perl5/site_perl/';

 



Relevant Pages

  • RE: setting the environment variables in perl
    ... > properly set in perl? ... > about how to write a script that includes all the required variables, ... It's really not a Perl issue per se. ... The whole point of environment variables is so the user can ...
    (perl.beginners)
  • Re: Environment veriable
    ... Perl should inherit whatever the environment shell it is called in. ... UNIX) concerning environment variables. ... It should unless the batch file commands prior to it span a new ...
    (perl.beginners)
  • Re: unsetenv in the shell
    ... i have a perl program that calls another application. ... application uses the value of certain environment variables during its ... system("unsetenv VAR1"); ... in a perl script. ...
    (comp.lang.perl.misc)
  • Re: AGAIN: how can I install modules if Im not root?
    ... claim that environment variables are bad ... won't screw one if one has multiple versions of Perl. ... install would work for a user by installing to a personal directory for them. ... additional modification of scripts using this module and/or scripts ...
    (comp.lang.perl.moderated)
  • Re: Environment veriable
    ... Jack Faley wrote: ... >>> variables in the batch file and have it call perl. ... > interested to know if you listed you environment variables before calling perl ...
    (perl.beginners)