Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / man / man3 / Inline.3
.\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sh \" Subsection heading
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. | will give a
.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
.\" expand to `' in nroff, nothing in troff, for use with C<>.
.tr \(*W-|\(bv\*(Tr
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
'br\}
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. nr % 0
. rr F
.\}
.\"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.hy 0
.if n .na
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff
.if n \{\
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #] \fP
.\}
.if t \{\
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
. ds #V .6m
. ds #F 0
. ds #[ \&
. ds #] \&
.\}
. \" simple accents for nroff and troff
.if n \{\
. ds ' \&
. ds ` \&
. ds ^ \&
. ds , \&
. ds ~ ~
. ds /
.\}
.if t \{\
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
. \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
. \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
. \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
. ds : e
. ds 8 ss
. ds o a
. ds d- d\h'-1'\(ga
. ds D- D\h'-1'\(hy
. ds th \o'bp'
. ds Th \o'LP'
. ds ae ae
. ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "Inline 3"
.TH Inline 3 "2002-10-28" "perl v5.8.0" "User Contributed Perl Documentation"
.SH "NAME"
Inline \- Write Perl subroutines in other programming languages.
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 1
\& use Inline C;
.Ve
.PP
.Vb 2
\& print "9 + 16 = ", add(9, 16), "\en";
\& print "9 - 16 = ", subtract(9, 16), "\en";
.Ve
.PP
.Vb 5
\& __END__
\& __C__
\& int add(int x, int y) {
\& return x + y;
\& }
.Ve
.PP
.Vb 3
\& int subtract(int x, int y) {
\& return x - y;
\& }
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
The Inline module allows you to put source code from other programming
languages directly \*(L"inline\*(R" in a Perl script or module. The code is
automatically compiled as needed, and then loaded for immediate access
from Perl.
.PP
Inline saves you from the hassle of having to write and compile your own
glue code using facilities like \s-1XS\s0 or \s-1SWIG\s0. Simply type the code where
you want it and run your Perl as normal. All the hairy details are
handled for you. The compilation and installation of your code chunks
all happen transparently; all you will notice is the delay of
compilation on the first run.
.PP
The Inline code only gets compiled the first time you run it (or
whenever it is modified) so you only take the performance hit once. Code
that is Inlined into distributed modules (like on the \s-1CPAN\s0) will get
compiled when the module is installed, so the end user will never notice
the compilation time.
.PP
Best of all, it works the same on both Unix and Microsoft Windows. See
Inline-Support for support information.
.Sh "Why Inline?"
.IX Subsection "Why Inline?"
Do you want to know \*(L"Why would I use other languages in Perl?\*(R" or \*(L"Why
should I use Inline to do it?\*(R"? I'll try to answer both.
.IP "Why would I use other languages in Perl?" 4
.IX Item "Why would I use other languages in Perl?"
The most obvious reason is performance. For an interpreted language,
Perl is very fast. Many people will say \*(L"Anything Perl can do, C can do
faster\*(R". (They never mention the development time :\-) Anyway, you may be
able to remove a bottleneck in your Perl code by using another language,
without having to write the entire program in that language. This keeps
your overall development time down, because you're using Perl for all of
the non-critical code.
.Sp
Another reason is to access functionality from existing API-s that use
the language. Some of this code may only be available in binary form.
But by creating small subroutines in the native language, you can
\&\*(L"glue\*(R" existing libraries to your Perl. As a user of the \s-1CPAN\s0, you know
that code reuse is a good thing. So why throw away those Fortran
libraries just yet?
.Sp
If you are using Inline with the C language, then you can access the
full internals of Perl itself. This opens up the floodgates to both
extreme power and peril.
.Sp
Maybe the best reason is \*(L"Because you want to!\*(R". Diversity keeps the
world interesting. \s-1TMTOWTDI\s0!
.IP "Why should I use Inline to do it?" 4
.IX Item "Why should I use Inline to do it?"
There are already two major facilities for extending Perl with C. They
are \s-1XS\s0 and \s-1SWIG\s0. Both are similar in their capabilities, at least as far
as Perl is concerned. And both of them are quite difficult to learn
compared to Inline.
.Sp
There is a big fat learning curve involved with setting up and using the
\&\s-1XS\s0 environment. You need to get quite intimate with the following docs:
.Sp
.Vb 8
\& * perlxs
\& * perlxstut
\& * perlapi
\& * perlguts
\& * perlmod
\& * h2xs
\& * xsubpp
\& * ExtUtils::MakeMaker
.Ve
.Sp
With Inline you can be up and running in minutes. There is a C Cookbook
with lots of short but complete programs that you can extend to your
real-life problems. No need to learn about the complicated build
process going on in the background. You don't even need to compile the
code yourself. Inline takes care of every last detail except writing
the C code.
.Sp
Perl programmers cannot be bothered with silly things like compiling.
\&\*(L"Tweak, Run, Tweak, Run\*(R" is our way of life. Inline does all the dirty
work for you.
.Sp
Another advantage of Inline is that you can use it directly in a script.
You can even use it in a Perl one\-liner. With \s-1XS\s0 and \s-1SWIG\s0, you always
set up an entirely separate module. Even if you only have one or two
functions. Inline makes easy things easy, and hard things possible. Just
like Perl.
.Sp
Finally, Inline supports several programming languages (not just C and
\&\*(C+). As of this writing, Inline has support for C, \*(C+, Java, Python,
Ruby, Tcl, Assembler, Basic, Guile, Befunge, Octave, Awk, \s-1BC\s0, \s-1TT\s0
(Template Toolkit), WebChat and even \s-1PERL\s0. New Inline Language Support
Modules (ILSMs) are regularly being added. See Inline-API for details
on how to create your own \s-1ILSM\s0.
.SH "Using the Inline.pm Module"
.IX Header "Using the Inline.pm Module"
Inline is a little bit different than most of the Perl modules that you
are used to. It doesn't import any functions into your namespace and it
doesn't have any object oriented methods. Its entire interface (with two
minor exceptions) is specified through the \f(CW'use Inline ...'\fR command.
.PP
This section will explain all of the different ways to \f(CW\*(C`use Inline\*(C'\fR. If
you want to begin using C with Inline immediately, see
Inline::C\-Cookbook.
.Sh "The Basics"
.IX Subsection "The Basics"
The most basic form for using Inline is:
.PP
.Vb 1
\& use Inline X => "X source code";
.Ve
.PP
where 'X' is one of the supported Inline programming languages. The
second parameter identifies the source code that you want to bind
to Perl. The source code can be specified using any of the
following syntaxes:
.IP "The \s-1DATA\s0 Keyword." 4
.IX Item "The DATA Keyword."
.Vb 1
\& use Inline Java => 'DATA';
.Ve
.Sp
.Vb 1
\& # Perl code goes here ...
.Ve
.Sp
.Vb 3
\& __DATA__
\& __Java__
\& /* Java code goes here ... */
.Ve
.Sp
The easiest and most visually clean way to specify your source code in
an Inline Perl program is to use the special \f(CW\*(C`DATA\*(C'\fR keyword. This tells
Inline to look for a special marker in your \f(CW\*(C`DATA\*(C'\fR filehandle's input
stream. In this example the special marker is \f(CW\*(C`_\|_Java_\|_\*(C'\fR, which is the
programming language surrounded by double underscores.
.Sp
In case you've forgotten, the \f(CW\*(C`DATA\*(C'\fR pseudo file is comprised of all
the text after the \f(CW\*(C`_\|_END_\|_\*(C'\fR or \f(CW\*(C`_\|_DATA_\|_\*(C'\fR section of your program. If
you're working outside the \f(CW\*(C`main\*(C'\fR package, you'd best use the
\&\f(CW\*(C`_\|_DATA_\|_\*(C'\fR marker or else Inline will not find your code.
.Sp
Using this scheme keeps your Perl code at the top, and all the ugly Java
stuff down below where it belongs. This is visually clean and makes for
more maintainable code. An excellent side benefit is that you don't have
to escape any characters like you might in a Perl string. The source
code is verbatim. For these reasons, I prefer this method the most.
.Sp
The only problem with this style is that since Perl can't read the
\&\f(CW\*(C`DATA\*(C'\fR filehandle until runtime, it obviously can't bind your functions
until runtime. The net effect of this is that you can't use your Inline
functions as barewords (without predeclaring them) because Perl has no
idea they exist during compile time.
.IP "The \s-1FILE\s0 and \s-1BELOW\s0 keywords." 4
.IX Item "The FILE and BELOW keywords."
.Vb 2
\& use Inline::Files;
\& use Inline Java => 'FILE';
.Ve
.Sp
.Vb 1
\& # Perl code goes here ...
.Ve
.Sp
.Vb 2
\& __JAVA__
\& /* Java code goes here ... */
.Ve
.Sp
This is the newest method of specifying your source code. It makes use
of the Perl module \f(CW\*(C`Inline::Files\*(C'\fR written by Damian Conway. The basic
style and meaning are the same as for the \f(CW\*(C`DATA\*(C'\fR keyword, but there are
a few syntactic and semantic twists.
.Sp
First, you must say 'use Inline::Files' before you 'use Inline' code
that needs those files. The special '\f(CW\*(C`DATA\*(C'\fR' keyword is replaced by
either '\f(CW\*(C`FILE\*(C'\fR' or '\f(CW\*(C`BELOW\*(C'\fR'. This allows for the bad pun idiom of:
.Sp
.Vb 1
\& use Inline C => 'BELOW';
.Ve
.Sp
You can omit the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR tag now. Inline::Files is a source filter
that will remove these sections from your program before Perl compiles
it. They are then available for Inline to make use of. And since this
can all be done at compile time, you don't have to worry about the
caveats of the '\s-1DATA\s0' keyword.
.Sp
This module has a couple small gotchas. Since Inline::Files only
recognizes file markers with capital letters, you must specify the
capital form of your language name. Also, there is a startup time
penalty for using a source code filter.
.Sp
At this point Inline::Files is alpha software and use of it is
experimental. Inline's integration of this module is also fledgling at
the time being. One of things I plan to do with Inline::Files is to get
line number info so when an extension doesn't compile, the error
messages will point to the correct source file and line number.
.Sp
My best advice is to use Inline::Files for testing (especially as
support for it improves), but use \s-1DATA\s0 for production and
distributed/CPAN code.
.IP "Strings" 4
.IX Item "Strings"
.Vb 1
\& use Inline Java => <<'END';
.Ve
.Sp
.Vb 2
\& /* Java code goes here ... */
\& END
.Ve
.Sp
.Vb 1
\& # Perl code goes here ...
.Ve
.Sp
You also just specify the source code as a single string. A handy way to
write the string is to use Perl's \*(L"here document\*(R" style of quoting. This
is ok for small functions but can get unwieldy in the large. On the
other hand, the string variant probably has the least startup penalty
and all functions are bound at compile time.
.Sp
If you wish to put the string into a scalar variable, please be aware
that the \f(CW\*(C`use\*(C'\fR statement is a compile time directive. As such, all the
variables it uses must also be set at compile time, \f(CW\*(C`before\*(C'\fR the 'use
Inline' statement. Here is one way to do it:
.Sp
.Vb 3
\& my $code;
\& BEGIN {
\& $code = <<END;
.Ve
.Sp
.Vb 4
\& /* Java code goes here ... */
\& END
\& }
\& use Inline Java => $code;
.Ve
.Sp
.Vb 1
\& # Perl code goes here ...
.Ve
.IP "The \fIbind()\fR Function" 4
.IX Item "The bind() Function"
An alternative to using the \s-1BEGIN\s0 block method is to specify the source
code at run time using the 'Inline\->\fIbind()\fR' method. (This is one of the
interface exceptions mentioned above) The \f(CW\*(C`bind()\*(C'\fR method takes the
same arguments as \f(CW'use Inline ...'\fR.
.Sp
.Vb 1
\& my $code = <<END;
.Ve
.Sp
.Vb 2
\& /* Java code goes here ... */
\& END
.Ve
.Sp
.Vb 1
\& Inline->bind(Java => $code);
.Ve
.Sp
You can think of \f(CW\*(C`bind()\*(C'\fR as a way to \f(CW\*(C`eval()\*(C'\fR code in other
programming languages.
.Sp
Although \fIbind()\fR is a powerful feature, it is not recommended for use in
Inline based modules. In fact, it won't work at all for installable
modules. See instructions below for creating modules with Inline.
.IP "Other Methods" 4
.IX Item "Other Methods"
The source code for Inline can also be specified as an external
filename, a reference to a subroutine that returns source code, or a
reference to an array that contains lines of source code. These methods
are less frequently used but may be useful in some situations.
.IP "Shorthand" 4
.IX Item "Shorthand"
If you are using the '\s-1DATA\s0' or '\s-1FILE\s0' methods described above \fBand\fR
there are no extra parameters, you can omit the keyword altogether.
For example:
.Sp
.Vb 1
\& use Inline 'Java';
.Ve
.Sp
.Vb 1
\& # Perl code goes here ...
.Ve
.Sp
.Vb 3
\& __DATA__
\& __Java__
\& /* Java code goes here ... */
.Ve
.Sp
or
.Sp
.Vb 2
\& use Inline::Files;
\& use Inline 'Java';
.Ve
.Sp
.Vb 1
\& # Perl code goes here ...
.Ve
.Sp
.Vb 2
\& __JAVA__
\& /* Java code goes here ... */
.Ve
.Sh "More about the \s-1DATA\s0 Section"
.IX Subsection "More about the DATA Section"
If you are writing a module, you can also use the \s-1DATA\s0 section for \s-1POD\s0
and AutoLoader subroutines. Just be sure to put them before the first
Inline marker. If you install the helper module \f(CW\*(C`Inline::Filters\*(C'\fR, you
can even use \s-1POD\s0 inside your Inline code. You just have to specify a
filter to strip it out.
.PP
You can also specify multiple Inline sections, possibly in different
programming languages. Here is another example:
.PP
.Vb 3
\& # The module Foo.pm
\& package Foo;
\& use AutoLoader;
.Ve
.PP
.Vb 3
\& use Inline C;
\& use Inline C => DATA => FILTERS => 'Strip_POD';
\& use Inline Python;
.Ve
.PP
.Vb 1
\& 1;
.Ve
.PP
.Vb 1
\& __DATA__
.Ve
.PP
.Vb 3
\& sub marine {
\& # This is an autoloaded subroutine
\& }
.Ve
.PP
.Vb 1
\& =head1 External subroutines
.Ve
.PP
.Vb 1
\& =cut
.Ve
.PP
.Vb 2
\& __C__
\& /* First C section */
.Ve
.PP
.Vb 3
\& __C__
\& /* Second C section */
\& =head1 My C Function
.Ve
.PP
.Vb 1
\& Some POD doc.
.Ve
.PP
.Vb 1
\& =cut
.Ve
.PP
.Vb 2
\& __Python__
\& """A Python Section"""
.Ve
.PP
An important thing to remember is that you need to have one \*(L"use
Inline Foo => '\s-1DATA\s0'\*(R" for each \*(L"_\|_Foo_\|_\*(R" marker, and they must be in
the same order. This allows you to apply different configuration
options to each section.
.Sh "Configuration Options"
.IX Subsection "Configuration Options"
Inline trys to do the right thing as often as possible. But
sometimes you may need to override the default actions. This is easy
to do. Simply list the Inline configuration options after the
regular Inline parameters. All congiguration options are specified
as (key, value) pairs.
.PP
.Vb 7
\& use Inline (C => 'DATA',
\& DIRECTORY => './inline_dir',
\& LIBS => '-lfoo',
\& INC => '-I/foo/include',
\& PREFIX => 'XXX_',
\& WARNINGS => 0,
\& );
.Ve
.PP
You can also specify the configuration options on a separate Inline call
like this:
.PP
.Vb 8
\& use Inline (C => Config =>
\& DIRECTORY => './inline_dir',
\& LIBS => '-lfoo',
\& INC => '-I/foo/include',
\& PREFIX => 'XXX_',
\& WARNINGS => 0,
\& );
\& use Inline C => <<'END_OF_C_CODE';
.Ve
.PP
The special keyword \f(CW'Config'\fR tells Inline that this is a
configuration-only call. No source code will be compiled or bound to
Perl.
.PP
If you want to specify global configuration options that don't apply
to a particular language, just leave the language out of the call.
Like this:
.PP
.Vb 1
\& use Inline Config => WARNINGS => 0;
.Ve
.PP
The Config options are inherited and additive. You can use as many
Config calls as you want. And you can apply different options to
different code sections. When a source code section is passed in,
Inline will apply whichever options have been specified up to that
point. Here is a complex configuration example:
.PP
.Vb 18
\& use Inline (Config =>
\& DIRECTORY => './inline_dir',
\& );
\& use Inline (C => Config =>
\& LIBS => '-lglobal',
\& );
\& use Inline (C => 'DATA', # First C Section
\& LIBS => ['-llocal1', '-llocal2'],
\& );
\& use Inline (Config =>
\& WARNINGS => 0,
\& );
\& use Inline (Python => 'DATA', # First Python Section
\& LIBS => '-lmypython1',
\& );
\& use Inline (C => 'DATA', # Second C Section
\& LIBS => [undef, '-llocal3'],
\& );
.Ve
.PP
The first \f(CW\*(C`Config\*(C'\fR applies to all subsequent calls. The second
\&\f(CW\*(C`Config\*(C'\fR applies to all subsequent \f(CW\*(C`C\*(C'\fR sections (but not \f(CW\*(C`Python\*(C'\fR
sections). In the first \f(CW\*(C`C\*(C'\fR section, the external libraries \f(CW\*(C`global\*(C'\fR,
\&\f(CW\*(C`local1\*(C'\fR and \f(CW\*(C`local2\*(C'\fR are used. (Most options allow either string or
array ref forms, and do the right thing.) The \f(CW\*(C`Python\*(C'\fR section does not
use the \f(CW\*(C`global\*(C'\fR library, but does use the same \f(CW\*(C`DIRECTORY\*(C'\fR, and has
warnings turned off. The second \f(CW\*(C`C\*(C'\fR section only uses the \f(CW\*(C`local3\*(C'\fR
library. That's because a value of \f(CW\*(C`undef\*(C'\fR resets the additive
behavior.
.PP
The \f(CW\*(C`DIRECTORY\*(C'\fR and \f(CW\*(C`WARNINGS\*(C'\fR options are generic Inline options. All
other options are language specific. To find out what the \f(CW\*(C`C\*(C'\fR options
do, see \f(CW\*(C`Inline::C\*(C'\fR.
.Sh "On and Off"
.IX Subsection "On and Off"
If a particular config option has value options of 1 and 0, you can use
the \s-1ENABLE\s0 and \s-1DISABLE\s0 modifiers. In other words, this:
.PP
.Vb 3
\& use Inline Config =>
\& FORCE_BUILD => 1,
\& CLEAN_AFTER_BUILD => 0;
.Ve
.PP
could be reworded as:
.PP
.Vb 3
\& use Inline Config =>
\& ENABLE => FORCE_BUILD,
\& DISABLE => CLEAN_AFTER_BUILD;
.Ve
.Sh "Playing 'with' Others"
.IX Subsection "Playing 'with' Others"
Inline has a special configuration syntax that tells it to get more
configuration options from other Perl modules. Here is an example:
.PP
.Vb 1
\& use Inline with => 'Event';
.Ve
.PP
This tells Inline to load the module \f(CW\*(C`Event.pm\*(C'\fR and ask it for
configuration information. Since \f(CW\*(C`Event\*(C'\fR has a C \s-1API\s0 of its own, it can
pass Inline all of the information it needs to be able to use \f(CW\*(C`Event\*(C'\fR C
callbacks seamlessly.
.PP
That means that you don't need to specify the typemaps, shared
libraries, include files and other information required to get
this to work.
.PP
You can specify a single module or a list of them. Like:
.PP
.Vb 1
\& use Inline with => qw(Event Foo Bar);
.Ve
.PP
Currently, \f(CW\*(C`Event\*(C'\fR is the only module that works \fIwith\fR Inline.
.Sh "Inline Shortcuts"
.IX Subsection "Inline Shortcuts"
Inline lets you set many configuration options from the command line.
These options are called 'shortcuts'. They can be very handy, especially
when you only want to set the options temporarily, for say, debugging.
.PP
For instance, to get some general information about your Inline code in
the script \f(CW\*(C`Foo.pl\*(C'\fR, use the command:
.PP
.Vb 1
\& perl -MInline=INFO Foo.pl
.Ve
.PP
If you want to force your code to compile, even if its already done, use:
.PP
.Vb 1
\& perl -MInline=FORCE Foo.pl
.Ve
.PP
If you want to do both, use:
.PP
.Vb 1
\& perl -MInline=INFO -MInline=FORCE Foo.pl
.Ve
.PP
or better yet:
.PP
.Vb 1
\& perl -MInline=INFO,FORCE Foo.pl
.Ve
.Sh "The Inline \s-1DIRECTORY\s0"
.IX Subsection "The Inline DIRECTORY"
Inline needs a place to build your code and to install the results of
the build. It uses a single directory named \f(CW'.Inline/'\fR under normal
circumstances. If you create this directory in your home directory, the
current directory or in the directory where your program resides, Inline
will find and use it. You can also specify it in the environment
variable \f(CW\*(C`PERL_INLINE_DIRECTORY\*(C'\fR or directly in your program, by using
the \f(CW\*(C`DIRECTORY\*(C'\fR keyword option. If Inline cannot find the directory in
any of these places it will create a \f(CW'_Inline/'\fR directory in either
your current directory or the directory where your script resides.
.PP
One of the key factors to using Inline successfully, is understanding
this directory. When developing code it is usually best to create this
directory (or let Inline do it) in your current directory. Remember that
there is nothing sacred about this directory except that it holds your
compiled code. Feel free to delete it at any time. Inline will simply
start from scratch and recompile your code on the next run. If you have
several programs that you want to force to recompile, just delete your
\&\f(CW'.Inline/'\fR directory.
.PP
It is probably best to have a separate \f(CW'.Inline/'\fR directory for each
project that you are working on. You may want to keep stable code in the
<.Inline/> in your home directory. On multi-user systems, each user
should have their own \f(CW'.Inline/'\fR directories. It could be a security
risk to put the directory in a shared place like \f(CW\*(C`/tmp/\*(C'\fR.
.Sh "Debugging Inline Errors"
.IX Subsection "Debugging Inline Errors"
All programmers make mistakes. When you make a mistake with Inline, like
writing bad C code, you'll get a big error report on your screen. This
report tells you where to look to do the debugging. Some languages may also
dump out the error messages generated from the build.
.PP
When Inline needs to build something it creates a subdirectory under
your \f(CW\*(C`DIRECTORY/build/\*(C'\fR directory. This is where it writes all the
components it needs to build your extension. Things like \s-1XS\s0 files,
Makefiles and output log files.
.PP
If everything goes \s-1OK\s0, Inline will delete this subdirectory. If there is
an error, Inline will leave the directory intact and print its location.
The idea is that you are supposed to go into that directory and figure
out what happened.
.PP
Read the doc for your particular Inline Language Support Module for more
information.
.Sh "The 'config' Registry File"
.IX Subsection "The 'config' Registry File"
Inline keeps a cached file of all of the Inline Language Support
Module's meta data in a file called \f(CW\*(C`config\*(C'\fR. This file can be found in
your \f(CW\*(C`DIRECTORY\*(C'\fR directory. If the file does not exist, Inline creates
a new one. It will search your system for any module beginning with
\&\f(CW\*(C`Inline::\*(C'\fR. It will then call that module's \f(CW\*(C`register()\*(C'\fR method to get
useful information for future invocations.
.PP
Whenever you add a new \s-1ILSM\s0, you should delete this file so that Inline
will auto-discover your newly installed language module.
.SH "Configuration Options"
.IX Header "Configuration Options"
This section lists all of the generic Inline configuration options. For
language specific configuration, see the doc for that language.
.Sh "\s-1DIRECTORY\s0"
.IX Subsection "DIRECTORY"
The \f(CW\*(C`DIRECTORY\*(C'\fR config option is the directory that Inline uses to both
build and install an extension.
.PP
Normally Inline will search in a bunch of known places for a directory
called \f(CW'.Inline/'\fR. Failing that, it will create a directory called
\&\f(CW'_Inline/'\fR
.PP
If you want to specify your own directory, use this configuration
option.
.PP
Note that you must create the \f(CW\*(C`DIRECTORY\*(C'\fR directory yourself. Inline
will not do it for you.
.Sh "\s-1NAME\s0"
.IX Subsection "NAME"
You can use this option to set the name of your Inline extension object
module. For example:
.PP
.Vb 2
\& use Inline C => 'DATA',
\& NAME => 'Foo::Bar';
.Ve
.PP
would cause your C code to be compiled in to the object:
.PP
.Vb 2
\& lib/auto/Foo/Bar/Bar.so
\& lib/auto/Foo/Bar/Bar.inl
.Ve
.PP
(The .inl component contains dependency information to make sure the
source code is in sync with the executable)
.PP
If you don't use \s-1NAME\s0, Inline will pick a name for you based on your
program name or package name. In this case, Inline will also enable the
\&\s-1AUTONAME\s0 option which mangles in a small piece of the \s-1MD5\s0 fingerprint
into your object name, to make it unique.
.Sh "\s-1AUTONAME\s0"
.IX Subsection "AUTONAME"
This option is enabled whenever the \s-1NAME\s0 parameter is not specified. To
disable it say:
.PP
.Vb 2
\& use Inline C => 'DATA',
\& DISABLE => 'AUTONAME';
.Ve
.PP
\&\s-1AUTONAME\s0 mangles in enough of the \s-1MD5\s0 fingerprint to make your module
name unique. Objects created with \s-1AUTONAME\s0 will never get replaced. That
also means they will never get cleaned up automatically.
.PP
\&\s-1AUTONAME\s0 is very useful for small throw away scripts. For more serious
things, always use the \s-1NAME\s0 option.
.Sh "\s-1VERSION\s0"
.IX Subsection "VERSION"
Specifies the version number of the Inline extension object. It is used
\&\fBonly\fR for modules, and it must match the global variable \f(CW$VERSION\fR.
Additionally, this option should used if (and only if) a module is being
set up to be installed permanently into the Perl sitelib tree. Inline
will croak if you use it otherwise.
.PP
The presence of the \s-1VERSION\s0 parameter is the official way to let Inline
know that your code is an installable/installed module. Inline will
never generate an object in the temporary cache (_Inline/ directory) if
\&\s-1VERSION\s0 is set. It will also never try to recompile a module that was
installed into someone's Perl site tree.
.PP
So the basic rule is develop without \s-1VERSION\s0, and deliver with \s-1VERSION\s0.
.Sh "\s-1WITH\s0"
.IX Subsection "WITH"
\&\f(CW\*(C`WITH\*(C'\fR can also be used as a configuration option instead of using the
special 'with' syntax. Do this if you want to use different sections of
Inline code \fIwith\fR different modules. (Probably a very rare usage)
.PP
.Vb 2
\& use Event;
\& use Inline C => DATA => WITH => 'Event';
.Ve
.PP
Modules specified using the config form of \f(CW\*(C`WITH\*(C'\fR will \fBnot\fR be
automatically required. You must \f(CW\*(C`use\*(C'\fR them yourself.
.Sh "\s-1GLOBAL_LOAD\s0"
.IX Subsection "GLOBAL_LOAD"
This option is for compiled languages only. It tells Inline to tell
DynaLoader to load an object file in such a way that its symbols can be
dynamically resolved by other object files. May not work on all
platforms. See the \f(CW\*(C`GLOBAL\*(C'\fR shortcut below.
.Sh "\s-1UNTAINT\s0"
.IX Subsection "UNTAINT"
You must use this option whenever you use Perl's \f(CW\*(C`\-T\*(C'\fR switch, for taint
checking. This option tells Inline to blindly untaint all tainted
variables. It also turns on \s-1SAFEMODE\s0 by default. See the \f(CW\*(C`UNTAINT\*(C'\fR
shortcut below.
.Sh "\s-1SAFEMODE\s0"
.IX Subsection "SAFEMODE"
Perform extra safety checking, in an attempt to thwart malicious code.
This option cannot guarantee security, but it does turn on all the
currently implemented checks.
.PP
There is a slight startup penalty by using \s-1SAFEMODE\s0. Also, using \s-1UNTAINT\s0
automatically turns this option on. If you need your code to start
faster under \f(CW\*(C`\-T\*(C'\fR (taint) checking, you'll need to turn this option off
manually. Only do this if you are not worried about security risks. See
the \f(CW\*(C`UNSAFE\*(C'\fR shortcut below.
.Sh "\s-1FORCE_BUILD\s0"
.IX Subsection "FORCE_BUILD"
Makes Inline build (compile) the source code every time the program is
run. The default is 0. See the \f(CW\*(C`FORCE\*(C'\fR shortcut below.
.Sh "\s-1BUILD_NOISY\s0"
.IX Subsection "BUILD_NOISY"
Tells ILSMs that they should dump build messages to the terminal rather
than be silent about all the build details.
.Sh "\s-1BUILD_TIMERS\s0"
.IX Subsection "BUILD_TIMERS"
Tells ILSMs to print timing information about how long each build phase
took. Usually requires \f(CW\*(C`Time::HiRes\*(C'\fR.
.Sh "\s-1CLEAN_AFTER_BUILD\s0"
.IX Subsection "CLEAN_AFTER_BUILD"
Tells Inline to clean up the current build area if the build was
successful. Sometimes you want to \s-1DISABLE\s0 this for debugging. Default is
1. See the \f(CW\*(C`NOCLEAN\*(C'\fR shortcut below.
.Sh "\s-1CLEAN_BUILD_AREA\s0"
.IX Subsection "CLEAN_BUILD_AREA"
Tells Inline to clean up the old build areas within the entire Inline
\&\s-1DIRECTORY\s0. Default is 0. See the \f(CW\*(C`CLEAN\*(C'\fR shortcut below.
.Sh "\s-1PRINT_INFO\s0"
.IX Subsection "PRINT_INFO"
Tells Inline to print various information about the source code. Default
is 0. See the \f(CW\*(C`INFO\*(C'\fR shortcut below.
.Sh "\s-1PRINT_VERSION\s0"
.IX Subsection "PRINT_VERSION"
Tells Inline to print Version info about itself. Default is 0. See the
\&\f(CW\*(C`VERSION\*(C'\fR shortcut below.
.Sh "\s-1REPORTBUG\s0"
.IX Subsection "REPORTBUG"
Puts Inline into '\s-1REPORTBUG\s0' mode, which is what you want if you desire
to report a bug.
.Sh "\s-1WARNINGS\s0"
.IX Subsection "WARNINGS"
This option tells Inline whether to print certain warnings. Default is 1.
.SH "Inline Configuration Shortcuts"
.IX Header "Inline Configuration Shortcuts"
This is a list of all the shorcut configuration options currently
available for Inline. Specify them from the command line when running
Inline scripts.
.PP
.Vb 1
\& perl -MInline=NOCLEAN inline_script.pl
.Ve
.PP
or
.PP
.Vb 1
\& perl -MInline=Info,force,NoClean inline_script.pl
.Ve
.PP
You can specify multiple shortcuts separated by commas. They are not
case sensitive. You can also specify shorcuts inside the Inline program
like this:
.PP
.Vb 1
\& use Inline 'Info', 'Force', 'Noclean';
.Ve
.PP
\&\s-1NOTE:\s0
If a \f(CW'use Inline'\fR statement is used to set shortcuts, it can not be
used for additional purposes.
.IP "\s-1CLEAN\s0" 4
.IX Item "CLEAN"
Tells Inline to remove any build directories that may be lying around in
your build area. Normally these directories get removed immediately
after a successful build. Exceptions are when the build fails, or when
you use the \s-1NOCLEAN\s0 or \s-1REPORTBUG\s0 options.
.IP "\s-1FORCE\s0" 4
.IX Item "FORCE"
Forces the code to be recompiled, even if everything is up to date.
.IP "\s-1GLOBAL\s0" 4
.IX Item "GLOBAL"
Turns on the \s-1GLOBAL_LOAD\s0 option.
.IP "\s-1INFO\s0" 4
.IX Item "INFO"
This is a very useful option when you want to know what's going on under
the hood. It tells Inline to print helpful information to \f(CW\*(C`STDERR\*(C'\fR.
Among the things that get printed is a list of which Inline functions
were successfully bound to Perl.
.IP "\s-1NOCLEAN\s0" 4
.IX Item "NOCLEAN"
Tells Inline to leave the build files after compiling.
.IP "\s-1NOISY\s0" 4
.IX Item "NOISY"
Use the \s-1BUILD_NOISY\s0 option to print messages during a build.
.IP "\s-1REPORTBUG\s0" 4
.IX Item "REPORTBUG"
Puts Inline into '\s-1REPORTBUG\s0' mode, which does special processing when
you want to report a bug. \s-1REPORTBUG\s0 also automatically forces a build,
and doesn't clean up afterwards. This is so that you can tar and mail
the build directory to me. \s-1REPORTBUG\s0 will print exact instructions on
what to do. Please read and follow them carefully.
.Sp
\&\s-1NOTE:\s0 \s-1REPORTBUG\s0 informs you to use the tar command. If your system does not have tar, please use the equivalent \f(CW\*(C`zip\*(C'\fR command.
.IP "\s-1SAFE\s0" 4
.IX Item "SAFE"
Turns \s-1SAFEMODE\s0 on. \s-1UNTAINT\s0 will turn this on automatically. While this
mode performs extra security checking, it does not guarantee safety.
.IP "\s-1SITE_INSTALL\s0" 4
.IX Item "SITE_INSTALL"
This parameter used to be used for creating installable Inline modules.
It has been removed from Inline altogether and replaced with a much
simpler and more powerful mechanism, \f(CW\*(C`Inline::MakeMaker\*(C'\fR. See the
section below on how to create modules with Inline.
.IP "\s-1TIMERS\s0" 4
.IX Item "TIMERS"
Turn on \s-1BUILD_TIMERS\s0 to get extra diagnostic info about builds.
.IP "\s-1UNSAFE\s0" 4
.IX Item "UNSAFE"
Turns \s-1SAFEMODE\s0 off. Use this in combination with \s-1UNTAINT\s0 for slightly
faster startup time under \f(CW\*(C`\-T\*(C'\fR. Only use this if you are sure the
environment is safe.
.IP "\s-1UNTAINT\s0" 4
.IX Item "UNTAINT"
Turn the \s-1UNTAINT\s0 option on. Used with \f(CW\*(C`\-T\*(C'\fR switch.
.IP "\s-1VERSION\s0" 4
.IX Item "VERSION"
Tells Inline to report its release version.
.SH "Writing Modules with Inline"
.IX Header "Writing Modules with Inline"
Writing \s-1CPAN\s0 modules that use C code is easy with Inline. Let's say that
you wanted to write a module called \f(CW\*(C`Math::Simple\*(C'\fR. Start by using the
following command:
.PP
.Vb 1
\& h2xs -PAXn Math::Simple
.Ve
.PP
This will generate a bunch of files that form a skeleton of what you
need for a distributable module. (Read the h2xs manpage to find out what
the options do) Next, modify the \f(CW\*(C`Simple.pm\*(C'\fR file to look like this:
.PP
.Vb 2
\& package Math::Simple;
\& $VERSION = '1.23';
.Ve
.PP
.Vb 3
\& use base 'Exporter';
\& @EXPORT_OK = qw(add subtract);
\& use strict;
.Ve
.PP
.Vb 3
\& use Inline C => 'DATA',
\& VERSION => '1.23',
\& NAME => 'Math::Simple';
.Ve
.PP
.Vb 1
\& 1;
.Ve
.PP
.Vb 1
\& __DATA__
.Ve
.PP
.Vb 1
\& =pod
.Ve
.PP
.Vb 1
\& =cut
.Ve
.PP
.Vb 4
\& __C__
\& int add(int x, int y) {
\& return x + y;
\& }
.Ve
.PP
.Vb 3
\& int subtract(int x, int y) {
\& return x - y;
\& }
.Ve
.PP
The important things to note here are that you \fBmust\fR specify a \f(CW\*(C`NAME\*(C'\fR
and \f(CW\*(C`VERSION\*(C'\fR parameter. The \f(CW\*(C`NAME\*(C'\fR must match your module's package
name. The \f(CW\*(C`VERSION\*(C'\fR parameter must match your module's \f(CW$VERSION\fR
variable and they must be of the form \f(CW\*(C`/^\ed\e.\ed\ed$/\*(C'\fR.
.PP
\&\s-1NOTE:\s0
These are Inline's sanity checks to make sure you know what you're doing
before uploading your code to \s-1CPAN\s0. They insure that once the module has
been installed on someone's system, the module would not get
automatically recompiled for any reason. This makes Inline based modules
work in exactly the same manner as \s-1XS\s0 based ones.
.PP
Finally, you need to modify the Makefile.PL. Simply change:
.PP
.Vb 1
\& use ExtUtils::MakeMaker;
.Ve
.PP
to
.PP
.Vb 1
\& use Inline::MakeMaker;
.Ve
.PP
When the person installing \f(CW\*(C`Math::Simple\*(C'\fR does a "\f(CW\*(C`make\*(C'\fR", the
generated Makefile will invoke Inline in such a way that the C code will
be compiled and the executable code will be placed into the \f(CW\*(C`./blib\*(C'\fR
directory. Then when a "\f(CW\*(C`make install\*(C'\fR" is done, the module will be
copied into the appropiate Perl sitelib directory (which is where an
installed module should go).
.PP
Now all you need to do is:
.PP
.Vb 2
\& perl Makefile.PL
\& make dist
.Ve
.PP
That will generate the file \f(CW\*(C`Math\-Simple\-0.20.tar.gz\*(C'\fR which is a
distributable package. That's all there is to it.
.PP
\&\s-1IMPORTANT\s0 \s-1NOTE:\s0
Although the above steps will produce a workable module, you still have
a few more responsibilities as a budding new \s-1CPAN\s0 author. You need to
write lots of documentation and write lots of tests. Take a look at some
of the better \s-1CPAN\s0 modules for ideas on creating a killer test harness.
Actually, don't listen to me, go read these:
.PP
.Vb 3
\& perldoc perlnewmod
\& http://www.cpan.org/modules/04pause.html
\& http://www.cpan.org/modules/00modlist.long.html
.Ve
.SH "How Inline Works"
.IX Header "How Inline Works"
In reality, Inline just automates everything you would need to do if you
were going to do it by hand (using \s-1XS\s0, etc).
.PP
Inline performs the following steps:
.IP "1) Receive the Source Code" 4
.IX Item "1) Receive the Source Code"
Inline gets the source code from your script or module with a statements
like the following:
.Sp
.Vb 1
\& use Inline C => "Source-Code";
.Ve
.Sp
or
.Sp
.Vb 2
\& use Inline;
\& bind Inline C => "Source-Code";
.Ve
.Sp
where \f(CW\*(C`C\*(C'\fR is the programming language of the source code, and
\&\f(CW\*(C`Source\-Code\*(C'\fR is a string, a file name, an array reference, or the
special \f(CW'DATA'\fR keyword.
.Sp
Since Inline is coded in a "\f(CW\*(C`use\*(C'\fR" statement, everything is done during
Perl's compile time. If anything needs to be done that will affect the
\&\f(CW\*(C`Source\-Code\*(C'\fR, it needs to be done in a \f(CW\*(C`BEGIN\*(C'\fR block that is
\&\fIbefore\fR the "\f(CW\*(C`use Inline ...\*(C'\fR" statement. If you really need to
specify code to Inline at runtime, you can use the \f(CW\*(C`bind()\*(C'\fR method.
.Sp
Source code that is stowed in the \f(CW'DATA'\fR section of your code, is
read in by an \f(CW\*(C`INIT\*(C'\fR subroutine in Inline. That's because the \f(CW\*(C`DATA\*(C'\fR
filehandle is not available at compile time.
.IP "2) Check if the Source Code has been Built" 4
.IX Item "2) Check if the Source Code has been Built"
Inline only needs to build the source code if it has not yet been built.
It accomplishes this seemingly magical task in an extremely simple and
straightforward manner. It runs the source text through the
\&\f(CW\*(C`Digest::MD5\*(C'\fR module to produce a 128\-bit \*(L"fingerprint\*(R" which is
virtually unique. The fingerprint along with a bunch of other
contingency information is stored in a \f(CW\*(C`.inl\*(C'\fR file that sits next to
your executable object. For instance, the \f(CW\*(C`C\*(C'\fR code from a script called
\&\f(CW\*(C`example.pl\*(C'\fR might create these files:
.Sp
.Vb 2
\& example_pl_3a9a.so
\& example_pl_3a9a.inl
.Ve
.Sp
If all the contingency information matches the values stored in the
\&\f(CW\*(C`.inl\*(C'\fR file, then proceed to step 8. (No compilation is necessary)
.IP "3) Find a Place to Build and Install" 4
.IX Item "3) Find a Place to Build and Install"
At this point Inline knows it needs to build the source code. The first
thing to figure out is where to create the great big mess associated
with compilation, and where to put the object when it's done.
.Sp
By default Inline will try to build and install under the first place
that meets one of the following conditions:
.Sp
.Vb 9
\& A) The DIRECTORY= config option; if specified
\& B) The PERL_INLINE_DIRECTORY environment variable; if set
\& C) .Inline/ (in current directory); if exists and $PWD != $HOME
\& D) bin/.Inline/ (in directory of your script); if exists
\& E) ~/.Inline/; if exists
\& F) ./_Inline/; if exists
\& G) bin/_Inline; if exists
\& H) Create ./_Inline/; if possible
\& I) Create bin/_Inline/; if possible
.Ve
.Sp
Failing that, Inline will croak. This is rare and easily remedied by
just making a directory that Inline will use;
.Sp
If the module option is being compiled for permanent installation, then
Inline will only use \f(CW\*(C`./_Inline/\*(C'\fR to build in, and the
\&\f(CW$Config{installsitearch}\fR directory to install the executable in. This
action is caused by Inline::MakeMaker, and is intended to be used in
modules that are to be distributed on the \s-1CPAN\s0, so that they get
installed in the proper place.
.IP "4) Parse the Source for Semantic Cues" 4
.IX Item "4) Parse the Source for Semantic Cues"
Inline::C uses the module \f(CW\*(C`Parse::RecDescent\*(C'\fR to parse through your
chunks of C source code and look for things that it can create run-time
bindings to. In \f(CW\*(C`C\*(C'\fR it looks for all of the function definitions and
breaks them down into names and data types. These elements are used to
correctly bind the \f(CW\*(C`C\*(C'\fR function to a \f(CW\*(C`Perl\*(C'\fR subroutine. Other Inline
languages like Python and Java actually use the \f(CW\*(C`python\*(C'\fR and \f(CW\*(C`javac\*(C'\fR
modules to parse the Inline code.
.IP "5) Create the Build Environment" 4
.IX Item "5) Create the Build Environment"
Now Inline can take all of the gathered information and create an
environment to build your source code into an executable. Without going
into all the details, it just creates the appropriate directories,
creates the appropriate source files including an \s-1XS\s0 file (for C) and a
\&\f(CW\*(C`Makefile.PL\*(C'\fR.
.IP "6) Build the Code and Install the Executable" 4
.IX Item "6) Build the Code and Install the Executable"
The planets are in alignment. Now for the easy part. Inline just does
what you would do to install a module. "\f(CW\*(C`perl Makefile.PL && make &&
make test && make install\*(C'\fR". If something goes awry, Inline will croak
with a message indicating where to look for more info.
.IP "7) Tidy Up" 4
.IX Item "7) Tidy Up"
By default, Inline will remove all of the mess created by the build
process, assuming that everything worked. If the build fails, Inline
will leave everything intact, so that you can debug your errors. Setting
the \f(CW\*(C`NOCLEAN\*(C'\fR shortcut option will also stop Inline from cleaning up.
.IP "8) DynaLoad the Executable" 4
.IX Item "8) DynaLoad the Executable"
For C (and \*(C+), Inline uses the \f(CW\*(C`DynaLoader::bootstrap\*(C'\fR method to pull
your external module into \f(CW\*(C`Perl\*(C'\fR space. Now you can call all of your
external functions like Perl subroutines.
.Sp
Other languages like Python and Java, provide their own loaders.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
For information about using Inline with C see Inline::C.
.PP
For sample programs using Inline with C see Inline::C\-Cookbook.
.PP
For \*(L"Formerly Answered Questions\*(R" about Inline, see Inline-FAQ.
.PP
For information on supported languages and platforms see
Inline-Support.
.PP
For information on writing your own Inline Language Support Module, see
Inline-API.
.PP
Inline's mailing list is inline@perl.org
.PP
To subscribe, send email to inline\-subscribe@perl.org
.SH "BUGS AND DEFICIENCIES"
.IX Header "BUGS AND DEFICIENCIES"
When reporting a bug, please do the following:
.PP
.Vb 4
\& - Put "use Inline REPORTBUG;" at the top of your code, or
\& use the command line option "perl -MInline=REPORTBUG ...".
\& - Run your code.
\& - Follow the printed directions.
.Ve
.SH "AUTHOR"
.IX Header "AUTHOR"
Brian Ingerson <INGY@cpan.org>
.PP
Neil Watkiss <NEILW@cpan.org> is the author of \f(CW\*(C`Inline::CPP\*(C'\fR,
\&\f(CW\*(C`Inline::Python\*(C'\fR, \f(CW\*(C`Inline::Ruby\*(C'\fR, \f(CW\*(C`Inline::ASM\*(C'\fR, \f(CW\*(C`Inline::Struct\*(C'\fR
and \f(CW\*(C`Inline::Filters\*(C'\fR. He is known in the innermost Inline circles as
the \*(L"Boy Wonder\*(R".
.SH "COPYRIGHT"
.IX Header "COPYRIGHT"
Copyright (c) 2000, 2001, 2002. Brian Ingerson. All rights reserved.
.PP
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
.PP
See http://www.perl.com/perl/misc/Artistic.html