Before you start
Have you ever encountered an application or system that required access to a scriptable environment or component? One obvious reason for such a requirement is to make use of functionality provided by a scripting language that would be difficult or complex to achieve with C. The Perl language is an ideal candidate for tasks such as text processing, parsing, and reformatting. Perl is a practical and easy-to-use scripting language that has the advantage of a rich and well-designed application program interface (API) that enables the language to integrate with host applications.
This tutorial covers:
- How Perl works
- Perl data types
- Embedding the interpreter
- Running Perl scripts within your application
- Exposing your application to the Perl scripts
This tutorial is written for developers who want to know how to incorporate the Perl interpreter into applications and how to expose these applications to allow Perl to control and manage the components. To use the techniques in this tutorial, you must be proficient in C and have at least a basic knowledge of Perl, its structure, and how to write basic applications in the Perl language.
To run the code samples in this tutorial, you'll need:

