in reply to Can we write multi-threaded scripts ?
You may also want to take a look at Mojo::IOLoop::Subprocess, new in Mojolicious 8.0.
This lets you use normal asynchronous programming style to spawn processes for background work.
If your work is not CPU bound, you may consider just using asynchronous calls in a single process (see Mojo::IOLoop).
Best
Jim
πάντων χρημάτων μέτρον έστιν άνθρωπος.
In Section
Seekers of Perl Wisdom