- Name: perl-JavaScript
- Version: 1.160.0
- Release: 2.mga1
- Epoch:
- Group: Development/Perl
- License: Artistic or GPL
- Url: http://search.cpan.org/dist/JavaScript/
- Summary: Execute JavaScript from within Perl
- Architecture: x86_64
- Size: 59544
- Distribution: Mageia
- Vendor: Mageia.Org
- Packager: Mageia Team <http://www.mageia.org>
Description:
JavaScript.pm is an interface to the SpiderMonkey JS engine. It lets you execute JS code,
call JS functions, bind Perl classes to JS, import Perl functions to JS, precompile and exeute
scripts among many other things. It does conversion between Perl and JS datatypes.
use JavaScript;
my $rt = JavaScript::Runtime->new();
my $cx = $rt->create_context();
$cx->bind_function(write => sub { print @_; });
$cx->eval(q/
for (i = 99; i > 0; i--) {
write(i + " bottle(s) of beer on the wall, " + i + " bottle(s) of beer\n");
write("Take 1 down, pass it around, ");
if (i > 1) {
write((i - 1) + " bottle(s) of beer on the wall.");
}
else {
write("No more bottles of beer on the wall!");
}
}
/);
- BuildArch:
- ExcludeArch:
- ExclusiveArch:
- Cookie: ecosse 1295650995
- Buildhost: ecosse
Generated packages:
- perl-JavaScript-1.160.0-2.mga1.i586
- perl-JavaScript-devel-1.160.0-2.mga1.i586
- perl-JavaScript-1.160.0-2.mga1.x86_64
- perl-JavaScript-devel-1.160.0-2.mga1.x86_64
Other version of this rpm: