sub THPING { my ($args) = @_; ... } sub PINGIT { my ($addr) = @_; ... }
to
sub THPING { my ($args) = @_; @_=(); # Avoid leaking. ... } sub PINGIT { my ($addr) = @_; @_=(); # Avoid leaking. ... }
(or shift the args out)
In reply to Re: Threads: How to fix "Scalars leaked" Issue? (Workaround)
by ikegami
in thread Threads: How to fix "Scalars leaked" Issue?
by VinsWorldcom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |