I just fixed a problem in my code where wr $server, $sendprefix; was generating 2012-01-10 17:07:37,773 ERROR kcmdproxy.child(10028):209 Exception while handling connection: Can't locate object method "wr" via package "IO::Socket::INET" at ./kcmdproxy line 149, <GEN9> line 1.. (Exception caught higher up the stack and turned into that log message.)
The fix was to change my code to wr($server, $sendprefix);.
I've been casually thinking there are many ways to call functions and it doesn't much matter which one I use. This situation is challenging that belief. Is there a good place to read up on this and become enlightened rather than more confused?
So far as I know, nothing is being called via package IO::Socket::INET where that error comes from; the "function" is not for example in a member of an object derived from that class, or anything like that. It's not in an object at all.