in reply to Re^3: Windows environment variable not set if calling from a perl program (call)
in thread Windows environment variable not set if calling from a perl program

Thanks for the reply. How can I include "call setEnv.bat" inside a subroutine of perl - the pl2bat sure generated a .bat file, but the subroutines are still subroutines right? Can I just stick in a statement "call setEnv.bat" inside a subroutine in the generated bat file?
  • Comment on Re^4: Windows environment variable not set if calling from a perl program (call)

Replies are listed 'Best First'.
Re^5: Windows environment variable not set if calling from a perl program (call)
by tye (Sage) on Dec 09, 2015 at 05:29 UTC
    How can I include "call setEnv.bat" inside a subroutine of perl

    Read more carefully? 'add "call setEnv.bat" to the preamble'

    If having the environment variables always set is a problem, then "you can't get there from here".

    - tye