[H-GEN] Reading from and writing to, environment variable from PERL
Cunningham, Conor
Conor.Cunningham at team.telstra.com
Wed Sep 10 01:35:11 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
Please excuse if my quote symbols are all out of whack. Still getting
use to Outlook.
From: Andrae Muys [mailto:andrae.muys at braintree.com.au]
>This isn't possible. Child processes have no access to their parents
>environment. The child's environment is setup by the parent, just
>before exec is called, but the child has no corresponding facility.
I was under the assumption that you could. I know that when you are
writing CGI applications with PERL, that you can access CGI ENV
parameters, such as the user's browser, the POST or GET parameters etc.
I understand your explanation about the child and parent processes, it
just seems a little strange that I can write something such as;
print(`data_period=2003-10-09`);
which will store a local variable, and then not be able to pull that
information back. (I know that I wouldn't need to do this as I already
have the information, just an example.)
So what if I export the $data_period to an environment variable through
a shell script? Would there be no way to grab that information through
PERL?
Kind Regards,
Conor Cunningham
(07) 3898 6133
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list