Biblio...:Embed(3pm)
π Biblio::Thesaurus::ModRewrite::Embed π
okay bestie, so this is a page from the User Contributed Perl Documentation, and it's the manual for Biblio::Thesaurus::ModRewrite::Embed. yes that name is a mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
Biblio::Thesaurus::ModRewrite::Embed β a module that lets you embed OML programs inside your Perl code. it's giving "two languages, one file, no drama" π
πΈ SYNOPSIS πΈ
like, here's the whole vibe:
use Biblio::Thesaurus::ModRewrite::Embed;
OML proc
$city 'city-of' $country => sub { print "$city is in $country\n"; }.
ENDOML
proc('ontology.iso');
that's it. that's the whole thing. iconic honestly π
π¦ DESCRIPTION π¦
so what's actually going on here? this module lets you embed OML programs directly in your Perl source code. and the way it works is so lowkey β it operates as a filter on your source code, which means all you gotta do is load it and it handles the rest. no cap. you literally just load it and that's your whole job π
π FUNCTIONS π
π buildOML
this function is what creates a brand-new function for executing the OML code it finds. like, it spins up the thing that runs your OML. slay β¨
π FILTER
this one filters your Perl source code. that's the filter. that's what it does. it filters. periodt π
π EXAMPLES π
if you want to see actual sample programs in action, go poke around the examples and bin directories. the receipts are right there bestie, go look π
π«Ά AUTHOR π«Ά
the legends behind this:
- Nuno Carvalho,
<smash@cpan.org> - J.Joao Almeida,
<jj@di.uminho.pt> - Alberto Simoes,
<albie@alfarrabio.di.uminho.pt>
three whole authors. main character energy from all of them, fr fr π
β 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.
so basically: free software, same terms as Perl, go wild but respectfully π§
and that's the whole page bestie!! this one shipped as perl v5.36.0 on 2023-02-14 β a lil Valentine's Day gift to the CPAN, we love to see it ππΈβ¨ mwah, bye!!
π¦ where this page comes from
- debian trixie: libbiblio-thesaurus-modrewrite-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbiblio-thesaurus-modrewrite-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbiblio-thesaurus-modrewrite-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbiblio-thesaurus-modrewrite-perl 0.03-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms