By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,852 Members | 1,410 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,852 IT Pros & Developers. It's quick & easy.

doubt?

P: 5
i executed an xml file using exec command in perl but after the exec there are some lines in perl to modify that xml file but what it does

the xml file alone is executed and then returns the lines after the exec command is not taken into account !
Feb 25 '08 #1
Share this Question
Share on Google+
1 Reply


KevinADC
Expert 2.5K+
P: 4,059
try using system() instead of exec(). Once you call exec() it exits the perl program and never returns. This is clearly stated in the exec() functions man page. If you need return value from the program use qx// instead of system().
Feb 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.