It's not going to be efficiently threaded like in Raku, but this is also possible in Perl 5 with a few modules from CPAN.
https://metacpan.org/pod/IO::Async::Function will maintain a preforked pool of processes (on Unix) or threads (on Windows), and return Futures, which can be used by fmap_concat from
https://metacpan.org/pod/Future::Utils to make a very map-looking iteration. The experimental
https://metacpan.org/pod/Future::AsyncAwait will make this even more natural in the future.