Ricardo SIGNES > perl-5.18.1 > CPerlBase

Download:
perl-5.18.1.tar.gz

Annotate this POD

Website

Source   Latest Release: perl-5.21.5

NAME ^

CPerlBase - a C++ base class encapsulating a Perl interpreter in Symbian

SYNOPSIS ^

        // in your App.mmp
        USERINCLUDE     \symbian\perl\x.y.z\include
        LIBRARY         perlXYZ.lib

        // in your App
        #include "PerlBase.h" // includes also EXTERN.h and perl.h
        CPerlBase* perl = CPerlBase::NewInterpreterLC();
        ...
        delete perl;

DESCRIPTION ^

CPerlBase is a simple Symbian C++ class that wraps a Perl interpreter; its creation, use, and destroying. To understand what this is doing, and how to use the interpreter, a fair knowledge of perlapi, perlguts, and perlembed is recommended.

One useful thing CPerlBase does compared with just using the raw Perl C API is that it redirects the "std streams" (STDOUT et alia) to a text console implementation which while being very basic is marginally more usable than the Symbian basic text console.

The Basics

Utility functions

Macros

Extending CPerlBase (subclassing, deriving from)

Note that it probably isn't worth the trouble to try to wrap the whole, rather large, Perl C API into a C++ API. Just use the C API.

The protected members of the class are:

COPYRIGHT ^

Copyright (c) 2004-2005 Nokia. All rights reserved.

LICENSE ^

The CPerlBase class is licensed under the same terms as Perl itself.

syntax highlighting: