JEJE is a Pure-Perl ECMAScript (JavaScript) engine. | |
Download |
JE Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Father Chrysostomos
- Publisher web site:
- http://search.cpan.org/~sprout/JE-0.021/lib/JE/Types.pod
JE Tags
JE Description
JE is a Pure-Perl ECMAScript (JavaScript) engine. JE is a Pure-Perl ECMAScript (JavaScript) engine.SYNOPSIS use JE; $j = new JE; # create a new global object $j->eval('({"this": "that", "the": "other"})'); # returns "that" $parsed = $j->parse('new Array(1,2,3)'); $rv = $parsed->execute; # returns a JE::Object::Array $rv->value; # returns a Perl array ref $obj = $j->eval('new Object'); # create a new object $foo = $j->{document}; # get property $j->{document} = $obj; # set property $j->{document} = {}; # gets converted to a JE::Object $j->{document}{location}{href}; # autovivification $j->method(alert => "text"); # invoke a method # create global function from a Perl subroutine: $j->new_function(print => sub { print @_, "n" } ); $j->eval( Requirements: · Perl
JE Related Software