Is my Perl script grabbing environment variabless from "someplace else"?

Posted by Michael Wilson on Stack Overflow See other posts from Stack Overflow or by Michael Wilson
Published on 2010-05-28T16:59:30Z Indexed on 2010/05/28 17:52 UTC
Read the original article Hit count: 190

On a Solaris box in a "mysterious production system" I'm running a Perl script that references an environment variable. No big deal.

The contents of that variable from the shell both pre- and post-execution are what I expect.

However, when reported by the script, it appears as though it's running in some other sub-shell which is clobbering my vars with different values for the duration of the script.

Unfortunately I really can't paste the code. I'm trying to get an atomic case, but I'm at my wit's end here.

© Stack Overflow or respective owner

Related posts about perl

Related posts about solaris