sub AUTOLOAD { my $connection = $device->getConnection(); return $connection->$methodName (..); // when called for getVersion, $methodName will become the "getVersion" }