how to call two programs simultaneously

Hi,
i want to call two programs simultaneously from a currently running program so as to distribute the job and fasten the speed.

As of now I call the programs one after the other within the main program.
e.g.
`perl A.pl`;
`perl B.pl`;
how can I run the two paralelly?
urgent ... please help.:frowning:

`perl A.pl &`
`perl B.pl &`

This will switch both tasks to the background and run them concurrently. You will run into trouble if you need to interact with them though (eg if they ask for user input on the keyboard).