ARSperl Manual - ars_GetCurrentServer

## `ars_GetCurrentServer(ctrl)`

Given a control record, returns the server name that is specified in the record.

On success
  Returns a scalar.
On failure
  Returns `undef`.

Example:

    	if($ctrl = ars_Login("", $username, $password)) {
    	    $cs = ars_GetCurrentServer($ctrl);
    	    print "current server: $cs\n";
    	} else {
    	    print "login failed: $ars_errstr\n";
    	    exit(0);
    	}

ars_GetCurrentServer was introduced in version 1.41 of ARSperl

Table of Contents