Your example doesn't match mine exactly. Try:
#!/usr/bin/perl use strict; use warnings; my @args = ("glomosim", "data.in"); system(@args) == 0 or die "system @args failed: \n syscode:$? \n error +:$! \n";
ensure the location of glomosim is in your system PATH variable, or provide full paths to both the program and the input file. Also, you replied to yourself rather than anyone else. See the links I provided earlier.
In reply to Re^2: system sub routine with windows7
by marto
in thread system sub routine with windows7
by Njoud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |