Re: Running perl from a test on Windows

[email protected] (Buddy Burden)
Newsgroups perl.qa
Message-ID <CAL0mxoRdfZZNU+FoOOTzQrLGxu8OhzETRyv4Q_G2N=dC71m76w@mail.gmail.com>
Gabor,

> I am not sure if this helps but in Windows you need to put the
> double-quotes around  $cmd
>
>     my $output = qx{$^X -e "$cmd"};

Yes, that would work if I were running _only_ on Windows.  But I need
it work for everything (and the double quotes on Linux will cause any
variables in my perl code to get intepreted by the shell. :-/


            -- Buddy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.