| perl documentation | view source | Contained in the perl distribution. |
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.
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.
| perl documentation | view source | Contained in the perl distribution. |