Subject: | dynamically set value not switched between concurrent `async sub`s |
(attached script) gives unexpected output:
$ perl two-task-switchers.pl
[red] Started red
[green] Started green
[green] working
[green] working
[green] still working
[green] still working
[green] Finished red
[TOP] Finished green
Expected:
$ perl two-task-switchers.pl
[red] Started red
[green] Started green
[red] working
[green] working
[red] still working
[green] still working
[red] Finished red
[green] Finished green
--
Paul Evans