in reply to launching perl processes from a perl script on Win2K

Hello,

I just tried on a W2k machine with ActiveState 5.6.1 the following, which worked for me:

#!perl.exe use strict; my $cmd = "perl.exe loretta.pl"; my @output = qx/$cmd/; print @output;
No idea, why it did not work for you.

And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)

Replies are listed 'Best First'.
Re^2: launching perl processes from a perl script on Win2K
by miseryandsuffering (Initiate) on Oct 14, 2004 at 08:50 UTC
    Just tried my @output = qx/$cmd/;
    You've put me on track of the real problem.
    Something is choking on one of my command line arguments.
    The string bla=1|0|-1|-1 was driving something crazy and producing the error message:
    '0' is not recognized as an internal or external command
    At least I have a way of getting this under control now.
    Thanks a lot.

      You must quote parameters that have "&" or "|" inside them:

      perl .... "bla=1|0|-1|-1"