<?xml version='1.0' encoding="UTF-8"?> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ <chapter id="chapter-perl5"> <title>Perl5
Plugins
</title> You
<emphasis role="strong">MUST
</emphasis> have
the
Perl5
loader
plugin
installed
and
working
as
well
as
the
gobject-introspection
package
for
GPlugin
installed
to
use
Perl5
plugins.
<title>Example
Perl5
Plugin
</title> Like
all
plugins
in
GPlugin,
Perl5
plugins
must
also
implement
the
<code>gplugin_query
</code>,
<code>gplugin_load
</code>,
and
<code>gplugin_unload
</code> functions.
The
following
is
a
basic
Perl5
plugin.
<informalexample><programlisting> use
Glib::Object::Introspection;
Glib::Object::Introspection->setup(basename
=>
"GPlugin",
version
=>
"1.0",
package=>
"GPlugin");
return
GPlugin::PluginInfo->new(
id
=>
"gplugin/perl5-basic-plugin",
abi_version
=>
0x01020304,
description
=>
"description",
</programlisting></informalexample>