Aug 29, 2002 #1 moof15 Programmer Aug 22, 2002 23 US I am trying not to save this xml file in the program. Should I use exec or system to first run the program? exec"program.pl"; open(LOG, >"file-save.xml" || die " can't open the logfile to clear\n"; close(LOG);
I am trying not to save this xml file in the program. Should I use exec or system to first run the program? exec"program.pl"; open(LOG, >"file-save.xml" || die " can't open the logfile to clear\n"; close(LOG);
Aug 29, 2002 #2 Coderifous Programmer Dec 13, 2001 782 US Even though I can't quite figure out what your question is asking, I can tell you this: exec() executes a system command and never returns. system() executes a system command and returns when finished. This probably is what you need to know in order to make your decision. --jim Upvote 0 Downvote
Even though I can't quite figure out what your question is asking, I can tell you this: exec() executes a system command and never returns. system() executes a system command and returns when finished. This probably is what you need to know in order to make your decision. --jim