Biblio::Thesaurus::ModRewrite::Embed - a module to embed OML programs in Perl code.
Contents
Copyright & License
Copyright 2008 Nuno Carvalho, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
perl v5.36.0 2023-02-14 Biblio::Thesaur...dRewrite::Embed(3pm)
Description
This module can be used to embed OML programs in Perl source code. This module works as a filter for the
source code, so you should only need to load it.
Examples
Look in the examples and bin directory for sample programs.
Functions
buildOML
This function is used to create a new function to execute the OML code found.
FILTER
This filters your Perl source code.
Name
Biblio::Thesaurus::ModRewrite::Embed - a module to embed OML programs in Perl code.
Synopsis
use Biblio::Thesaurus::ModRewrite::Embed;
OML proc
$city 'city-of' $country => sub { print "$city is in $country\n"; }.
ENDOML
proc('ontology.iso');
