in reply to Re: open(), ipc and some problems
in thread open(), ipc and some problems

Well, it works :)...Don't know why the other example does not work, but thank you.

Replies are listed 'Best First'.
Re^3: open(), ipc and some problems
by northwind (Hermit) on May 12, 2005 at 07:41 UTC

    The reason behind this is Windows does not understand the | character on the command line, therefore you need to explicitly declare what are arguments and what is your opening mode.  If you need to be even more explicit (and you're running a Perl > 5.6, I think) you could also say:
     open(STATUS, "-|", "ipconfig", "arg_1", "arg_2") or die "ACK, GASP:  Cannot fork: $! ";