Biblio::Thesaurus::ModRewrite::Embed(3pm)

Biblio::Thesaurus::ModRewrite::Embed3pm

A module to embed oml programs in perl code.

Usage

  use Biblio::Thesaurus::ModRewrite::Embed;
  OML proc
  $city 'city-of' $country => sub { print "$city is in $country\n"; }.
  ENDOML
  proc('ontology.iso');

Overview

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.

Functions

buildOML

This function is used to create a new function to execute the OML code found.

Filter

This filters your Perl source code.

Examples

Look in the examples and bin directory for sample programs.