in reply to Threads: How to fix "Scalars leaked" Issue?
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)
|
|---|