in reply to A question with commands

The back tick does variable interpolation so I believe that you should be able to do `perl test.pl $var1 $var2\\$var3` and have it work. Assuming that Perl is in the path and that test.pl is in the local directory.

--t. alex

"Mud, mud, glorious mud. Nothing quite like it for cooling the blood!" --Michael Flanders and Donald Swann

Replies are listed 'Best First'.
Re: Re: Variable interpolation using back ticks
by dimmesdale (Friar) on Jun 24, 2002 at 15:09 UTC
    Well actually perl isn't in the path. . . but that's a long story (soon to be fixed, hopefully).

    The command that I'm using looks like this:

    `E:\perl\bin\perl test.pl $arg1 $arg2`;

    The problem is that it still gives me a bad command/filename warning (Windows 98, {active}perl running on MS-DOS prompt)

    Update:

    System procedure works. Thanks boss.