---
name: "JavaScript::PerlHash"
section: "3pm"
platform: "linux"
package: "libjavascript-perl"
version: "1.16-3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/JavaScript::PerlHash"
---

# JavaScript::PerlHash(3pm)

Encapsulate a Perl hash in JavaScript space

## NAME

JavaScript::PerlHash - Encapsulate a Perl hash in JavaScript space

## INTERFACE

### CLASS METHODS

- new ()

  Creates a new instance with an empty hash.

### INSTANCE METHODS

- get\_ref ( )

  Returns a reference to the underlying hash.

### JAVASCRIPT INTERFACE

This class is exposed in JavaScript space as **PerlHash** and can be instanciated using `"new PerlHash();"`. Set and get  properties as a normal `"Object"`. Currently enumerating of the keys of the hash is not supported.
