http://qs1969.pair.com?node_id=173920


in reply to Re: .bat and perl mystery
in thread .bat and perl mystery

Unfortunatley, I can't provide the code, because it's dealing with the 'vcvars32.bat' file (environment for Visual Studio 6.0) I get the message: "Setting environment for using Microsoft Visual C++ tools.", but it hasn't actually changed the environment. If I execute the batch file from the command line and then run my perl script is works fine....DAMN Microsoft!

Replies are listed 'Best First'.
Re^3: .bat and perl mystery
by particle (Vicar) on Jun 12, 2002 at 16:50 UTC
    execution path:

    run perl script -> start new environment space and run batch file -> return to old environment space inside perl script (no changes made to environment)

    check out tye's SetEnviron.bat for more info on your real problem.

    ~Particle *accelerates*

Re: Re: Re: .bat and perl mystery
by Sinister (Friar) on Jun 13, 2002 at 11:21 UTC
    Mmmm... Nice problem

    Here's my guess:
    It _does_ adapt your envirnoment, but the valuea are set back once the perl script ends...

    er formait hyarya.
    -- "Life is a house and the next tornado is never far away"
    -- "lovely by nature"