in reply to Using STDIN after exec() with ActiveState Perl

Simple.. Drop the exec. :)

What's your intention anyway?

Better just use pure Perl solutions instead if depending on OS features respectively their (incomplete) emulation.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

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

Replies are listed 'Best First'.
Re^2: Using STDIN after exec() with ActiveState Perl
by Yaribz (Beadle) on Jun 21, 2015 at 19:38 UTC
      Ehm... What's wrong with setting $ENV{PATH} in a BEGIN block?

      update

      Providing you are not allowed to set the correct environment in the registry.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

        The DLL to load is not known at script start.
      windows doesn't have LD_LIBRARY_PATH
        I know. I use PATH instead on Windows and it works. The only problem is this STDIN being multiplexed.

        edit: actually it's not even for the PATH environment variable that I need the exec, it's for setting an environment variable that can be seen by a dynamic library called by my script.