Yes...
use threads; foreach (0..5) { async { action like printing some string, or adding two numbers, etc +... }->detach; ## Corrected per [missingthepoint]'s enigmatic post bel +ow! }
See threads, but be aware, the Devil is in the details.
In reply to Re: Is it possible to perform concurrent action like loop?
by BrowserUk
in thread Is it possible to perform concurrent action like loop?
by anbutechie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |