Argument to share needs to be passed as ref at telnetclient.perl line 103.