You need to mention the timer variable $w inside the subroutine to keep it alive.
Either move it into a global variable or just mention it in the subroutine so it closes over the value. Even better would be to clean up the timer based on some condition.
In reply to Re^5: PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help
by Corion
in thread PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help
by xtpu2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |