Hey Guys,

Have u any Idea how to call a perl script within my main script in a loop.
I used system and exec both, but it seems to be not working. I want the second calling of the script shouldn't depend on the first calling.... all should run independently............

you can try this: open the file, slurp it all in at once and use eval to execute the code.

Calling another perl script in a loop should not be difficult but the last part of your question makes no sense to me.

I want the second calling of the script shouldn't depend on the first calling.... all should run independently............

I am calling the script as exec(called_script.pl, arg1), its calling first time , second execution is not going, it is killing the main process. My second question refers all the time loop increases it should run another instance of the script. Ok can u just tell how to call the script in a loop. Thanks in advance

I know i've used print `command`; as well with varied success.