"be consistent" | |
PerlMonks |
Re: Command Terminal: system(), exec() etc queryby lyklev (Pilgrim) |
on Jan 28, 2011 at 15:51 UTC ( [id://884865]=note: print w/replies, xml ) | Need Help?? |
Without knowing too much about your problem, I think you need system("./DynDom $filename") This will print the output of your program DynDom to the screen; you don't seem to want to capture the output in a variable, but if you do, you can then use
Exec is more tricky because it does not return to perl, it stops your program (in this case Perl), replaces perl with the program executed, then starts the new program. This means that it will do the first iteration in the loop, run your program and then exit. When you need exec(), you will know when you need it...
In Section
Seekers of Perl Wisdom
|
|