⧼vector-jumptocontent⧽

API:EPrints/Script: Difference between revisions

From EPrints Documentation
New page: <!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints source. Any wiki changes made between the 'Pod2Wiki=*' and 'End of Pod2Wiki' comments will be lost. -...
 
Removing all content from page
 
Line 1: Line 1:
<!-- Pod2Wiki=_preamble_
This page has been automatically generated from the EPrints source. Any wiki changes made between the 'Pod2Wiki=*' and 'End of Pod2Wiki' comments will be lost.
-->{{Pod2Wiki}}{{API:Source|file=EPrints/Script.pm|package_name=EPrints::Script}}[[Category:API|Script]]<!-- End of Pod2Wiki -->
<!-- Pod2Wiki=head_name -->=NAME=
'''EPrints::Script''' - Mini-scripting language for use in workflow and citations.


<!-- End of Pod2Wiki -->
<!-- Pod2Wiki=head_description -->=DESCRIPTION=
This module processes simple eprints mini-scripts.
my $result = execute( "$eprint.type = 'article'", { eprint=&gt;$eprint } );
 
The syntax is
$var := dataobj or string or datastructure
"string" := string
'string' := string
!boolean := boolean
string = string := boolean
string := string := boolean
boolean or boolean := boolean
boolean and boolean := boolean
dataobj{property} := string or datastructure
dataobj.is_set( fieldname ) := boolean
string.one_of( string, string, string... ) := boolean
string.reverse() := string ( foobar=&gt;raboof )
?.length() := integer
 
<!-- End of Pod2Wiki -->
<!-- Pod2Wiki=head_undocumented_methods -->=UNDOCUMENTED METHODS=
{{API:Undocumented Methods}}<!-- End of Pod2Wiki -->
<!-- Pod2Wiki=item_error -->==error==
<!-- End of Pod2Wiki -->
<!-- Pod2Wiki=item_execute -->==execute==
<!-- End of Pod2Wiki -->
<!-- Pod2Wiki=item_print -->==print==
<!-- End of Pod2Wiki -->
<!-- Pod2Wiki=_postamble_ --><!-- End of Pod2Wiki -->

Latest revision as of 15:41, 12 August 2009