ARSperl Programmer's Manual - ars_SetSchema

## `ars_SetSchema(ctrl, name, schemaHash)`

This function modifies an existing schema. You must first populate the `schemaHash` before calling this routine.

`name` is the schema name.

`schemaHash` is a Schema Attributes hash.

On success
  Returns 1
On failure
  Returns 0

Example:

> This example copies an existing schema to a new schema. I.e. it simply re-saves the schema under a new name.

          ($a = ars_GetSchema($c, "AL-foobar")) ||
    	    die $ars_errstr;
          $a->{name} = "Copy of ".$a->{name};
          ars_SetSchema($c, $name, $a) || die $ars_errstr;

This function was introduced in version 1.90 of ARSperl

Back to Table of Contents