in reply to Is it possible to perform concurrent action like loop?

It is possible to perform actions concurrently, either by creating threads or processes which can run concurrently.

You can learn about these options by reading perlipc, perlfork, perlthrtut and Threads, Multi-Processing, and Inter-Process Communication. It is a broad topic with many issues, so you should expect to invest considerable time and effort in learning enough to be successful and proficient.

It would be unusual to use concurrent threads or processes for operations as simple as printing some strings or adding some numbers but doing so may be valuable as a learning exercise.

  • Comment on Re: Is it possible to perform concurrent action like loop?