created by bind_class in JSPL::Context it becomes an instance of that
class. Otherwise it becomes an instance of the generic wrapper class
Wrapper classes, installed with
bind_class, define all the semantic for
objects wrapped in them. So, you should check their documentation on how to use
them. This page describes the semantics of the generic wrapper.
can get and set its properties and you can call its methods.
They inherit from Object (via its prototype chain). You can use any of the
In fact, the
PerlObject wrapper is written as transparent as possible to avoid
name clashes with the methods and properties of the associated perl object nor
When you reference a property of a
PerlObject instance it will be obtain
from the perl side, wrapped or converted according to is type, see
The only instance property of special interest is:
__proto__. The head of the prototype chain of the object. In it
the JSPL module implements PerlObject's magic. Here you will see an
instance of Stash proxy, that associates the PerlObject with the
original perl package (a "stash" in perl parlance) in which the object was
blessed. See JSPL::Stash for the details.
Any instance methods defined in the associated perl object and its inheritance
When you call a method of a
PerlObject instance you are referencing a
property in it, accordingly to the previous section you will obtain a
instance. So that
PerlSub instance will be called. See
PerlSub for the details.
Matías Software Group, 2010