in reply to System call in Windows

You have a problem with quoting. Try (this provides system() with multiple arguments):
system qw(perl -pib -e s/CAT/mouse/g D:\tmp\file.txt); # Or in case you need to replace an arg with a variable, then start wi +th: system "perl", "-pib", "-e", "s/CAT/mouse/g", 'D:\tmp\file.txt';

Replies are listed 'Best First'.
Re^2: System call in Windows
by csarid (Sexton) on Oct 24, 2008 at 19:55 UTC
    Hi runrig,
    Your solution also works for me. Thank very much!