- or download this
sub getVersion {
return $http->sendCommand('version');
}
- or download this
$device->getVersion(); //This is called through device object rath
+er than connection object.
- or download this
sub AUTOLOAD {
my $connection = $device->getConnection();
return $connection->$methodName (..); // when called for getVers
+ion, $methodName will become the "getVersion"
}