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

Thanks for looking into this. The problem is that my script must be able to modify the environment variables as many times as needed during its execution, which would lead to a growing number of idle perl processes with this solution.

I would argue you must be missing an API call that exists and does the same thing directly, no relying on %ENV

  • Comment on Re^19: Using STDIN after exec() with ActiveState Perl

Replies are listed 'Best First'.
Re^20: Using STDIN after exec() with ActiveState Perl
by Yaribz (Beadle) on Jun 23, 2015 at 09:35 UTC
    You're totally right, cf Re^20: Using STDIN after exec() with ActiveState Perl

    edit: oh actually I guess you meant an API call in the dynamic library I load, which would allow me to avoid relying on environment variables. Yes you're right, unfortunately there is no such API function to set the write directory (only data directories). And if it was added now, I wouldn't be able to use it anyway since I have to maintain backward compatibility with older versions of this library.