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.
They inherit from Object (via its prototype chain). You can use any of the functions from
In fact, the
When you reference a property of a
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
PerlSub instance. So that
PerlSub instance will be called. See PerlSub for the details.