in reply to scope and declaration in local packages
On top of what's said above, you're calling sound as a class method, however, the code of the sub suggests it ought to be called as an object method. However, your snippet never creates an object.
In Section
Seekers of Perl Wisdom