in reply to A question with commands

Try system:
system('perl', 'test.pl', $var1, $var2.'\\'.$var3);
You should probably fully qualify the path to test.pl, $ENV{HOME} is handy for this:
system( 'perl', $ENV{HOME}.'\path\to\test.pl', $var1, qq|$var2\\$var3|, );
(udpated node - yada yada yada, read question closer)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: (jeffa) Re: A question with commands
by demerphq (Chancellor) on Jun 24, 2002 at 16:46 UTC
    For the record this is more or less equivelent to doing
    `cmd.exe /c perl.exe test.pl $var1 $vars\\$var3`
    The only difference is that the cmd.exe call will be appropriately qualified, both in terms of OS (the w9x series has a slighly different syntax) and in terms of using the correct systempath to get to cmd.exe

    Yves / DeMerphq
    ---
    Writing a good benchmark isnt as easy as it might look.