in reply to Re^11: Using STDIN after exec() with ActiveState Perl
in thread Using STDIN after exec() with ActiveState Perl

It's the unitsync library used by the Spring RTS project (https://springrts.com/). The environment variables used by this library are specific to this project (SPRING_DATADIR and SPRING_WRITEDIR).
  • Comment on Re^12: Using STDIN after exec() with ActiveState Perl

Replies are listed 'Best First'.
Re^13: Using STDIN after exec() with ActiveState Perl
by Anonymous Monk on Jun 21, 2015 at 21:18 UTC
    It should work exactly the same way
    use Module::Load; ... $ENV{SPRING_DATADIR} = ...; load( "ModuleName" );
      On Linux it works, but not on Windows (I re-checked right now).

        On Linux it works, but not on Windows (I re-checked right now)

        I don't believe that :)

        You must be loading the module before you modify %ENV

        Don't do that, only load the module after you've set %ENV