JavaScript::Function(3pm)

JavaScript::Function3pm

Reference to a javascript function

Overview

Functions in JavaScript are actually "Function"-objects. This class encapsulates them and make them invokeable as a code-reference from Perl.

Interface

Instance methods

as_function

Returns an code-reference that can be invoked which calls the underlying JavaScript "Function"-object.

Overloaded methods

Instances of this class overloads "&{}" which means that you can use the instance as a code-reference directlly without having to use "as_function".

Releases

2 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0
  2. 6.0

From libjavascript-perl 1.16-3 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.