NAME
XML::Axk::Language - base language code for the axk XML processor
VERSION
Version 0.01
USAGE
When implementing a language:
require
XML::Axk::Language;
sub
import
{
XML::Axk::Language->
import
(
target
=>
caller
,
sp
=> [
qw($foo @bar)
],
updater
=>
sub
{ ... } );
}
OPTIONS
target
: the name of the package to load the script parameters (SPs) into
sp
: the list of script parameters to load.
updater
: a code ref to a function that will update the SPs based on the data of a record. &updater
is called with a hashref of the SPs as the first parameter, and key/value pairs of the record data as the remaining parameters. &updater
should directly update the hashref, not replace it.
LICENSE AND COPYRIGHT
Copyright (c) 2018 Christopher White. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). Details are in the LICENSE file accompanying this distribution.