in reply to Threads: How to fix "Scalars leaked" Issue?

I found a simple workaround. Change
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)