Target Audience
This tutorial is intended for anyone who wants to use C or C++ in their
Perl programming. The easy way! If you have an intermediate
understanding of Perl, and a thorough knowledge of the program
hello_world.c, you are fully qualified for this class. If you need to
speed up your favorite Perl script, make use of some existing C library,
or write an extension module for the CPAN, this tutorial is for
you. Even if you are a seasoned XS hack, Inline is a great way to make
your code fathomable to the rest of us.
What Attendees Will Learn
Inline.pm is a new module that glues other programming languages to
Perl. It allows you to write C and C++ code directly inside
your Perl scripts and modules. The Inline experience is similar to that
of Perl itself. You simply write your code and run it. Inline will
silently take care of all the messy implementation details and ``do the
right thing''.
Attendees of this tutorial will learn:
- Syntax, usage, and configuration of Inline.pm.
- How to write Perl subroutines in C.
- How to expose external C functions to Perl.
- How Inline works. Including a detailed look at its Parse::RecDescent
grammar.
- Basic Perl internals.
- How to use typemapping to modify/extend Inline's functionality.
- How to write complete extension modules for CPAN distribution.
- How to create precompiled binary distributions.
- How to use and create Inline-enabled modules like Event.pm.
- Object Oriented and CGI issues.
- How to bind Perl to C++.
- Discussion of many concise yet functional examples.