View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Léon Brocard > perl-5.12.4 > CPerlBase


Annotate this POD


Source   Latest Release: perl-5.28.0-RC3


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


        // 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;


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


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 (c) 2004-2005 Nokia. All rights reserved.


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

syntax highlighting: