Re: Perl - Add env,.variable?
gustav@xxxxxxxxxxxxxx wrote:
> I want to add an environment variable in Perl. Is there any built-in
> function for achieving this?
If you want to set an environment variable for the currently executing
script, and any of its forked children, to use while that script is
running, simply modify the global %ENV hash. This hash is tied to all
the environment variables.
Note that you CANNOT change the environment of your script's parent
process.
See also:
perldoc -q environment
Paul Lalli
.
Relevant Pages
- Re: logon/logoff scripts...
... I am using the %clientname% and %machine% name environment variables to ... each user you can specify a login script but nowhere do I see the ... (microsoft.public.backoffice.smallbiz2000) - Re: Startup script ?
... I.E where do I put the script ... Every process has a set of environment variables, ... If there is some script that runs apt-get ... that will get set whenever *lots* of users login, ... (Debian-User) - Re: exporting a variable to global shells
... Environment variables are a user-space concept - ... When the script is exiting the echo stdout's the proxy adress, ... setting up my network differently depending on where/what I connect to. ... With regard to actually *setting* the proxy server, ... (Debian-User) - RE: DBD::Oracle install failed for fork test in t/10general.t
... environment variables $ORACLE_SID and $TWO_TASK. ... the connection is local and a dedicated server is bequeathed ... I'm not sure what 'Unix init process' is, ... It works when I ran a script pointing to the 'blib'. ... (perl.dbi.users) - Re: Enviro vars or files
... >> I'm in the midst of creating a bash script for uploading files. ... Put the info in different environment variables. ... >> would need to create files that store the information. ... > or if the env file itself sources other env files. ... (comp.unix.shell) |
|