The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

Connector::Multi::YAML

Description

This is a glue connector to create the required reference syntax for Connector::Multi based on a backend configuration handled by YAML.

LOCATION is passed over as file to load by YAML.

Internally, the constructor walks down the whole tree and translates all keys starting or ending with the "@" character into references as understood by Connector::Multi.

CONFIGURATION

There is no special configuration besides the mandatory LOCATION property.

Example

   my $backend = Connector::Multi::YAML->new({
       LOCATION = /etc/myconfigtree/
   })
   
   my $multi = Connector::Multi->new({
       BASECONNECTOR => $backend
   })