Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Using STDIN after exec() with ActiveState Perl

by LanX (Saint)
on Jun 21, 2015 at 19:22 UTC ( [id://1131366]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1131366]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-23 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found