Other have already provided you with a solution to your code problems. If you want an alternative to using temporary files for sending the progress of your script to some other program, Net::Clacks might be of help to you Net::Clacks for IPC (2024 tutorial).
Even Santa uses it to monitor his factory: https://perladvent.org/2024/2024-12-13.html
In reply to Re: Vexing Race Condition
by cavac
in thread Vexing Race Condition
by Maelstrom
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |