gil_elad has asked for the wisdom of the Perl Monks concerning the following question:

I tried the following system command which contain % sign. system ("echo %a"); On a regular windows 2000 it works fine. it prints %a on the screen. BUT when I tried the same command on Data Center machine it DOES NOT submit the system command at all. I tried the following command. print ("%a\n"); And it works fine on both machines. Thanks.

Replies are listed 'Best First'.
Re: Data Center on windows 2000
by bwana147 (Pilgrim) on Jun 07, 2001 at 15:52 UTC

    Maybe you can try starting the command line interpreter instead of echo itself:

    system('cmd.exe', '/C', 'echo %a');

    Still, it could be interesting if you gave some background. Why do you call the system for printing, why can't you print directly from Perl?

    --bwana147

Re: Data Center on windows 2000
by Anonymous Monk on Jun 07, 2001 at 16:14 UTC
    Gil HA Tembel, I checked your problem on Data Center manchine , and there is a problem with using % sing in system command. I installed the latest version of ActiveState Perl 626. and now the problem is solved. here is the link to site which I downloaded the installation file. http://aspn.activestate.com/ASPN/Downloads/ActivePerl/index/ you should download the : ActivePerl 5.6.1.626 -> Windows -> MSI attachment. Now everyone knows that you a big Perl Tembel.