The original code for this was lifted from a Japanese message board of some sort.
I am not the original author of this code! I just fixed one bug, added a test
make test, and put it up on GitHub for others to find and improve upon.
When I found this code, it was (and is, as of July 12, 2009) the only perl
binding for V8.
This code works fine for me but I would really be happy to turn this over to someone who is more of an expert in XS.
I do not have a CPAN account (yet?) and of course that's
where all Perl modules should ultimately live. Once I get some feedback or a
new maintainer approaches me, we'll move this module there. Also,
V8 is not
the best module name (no namespace).
Download, build, and install v8.
svn checkout http://v8.googlecode.com/svn/trunk/ v8 cd v8 scons sudo mv include/v8.h /usr/local/include/ sudo mv libv8.a /usr/local/lib/
Install prerequisite modules
sudo cpan Module::Install
Build the v8 "bridge"
make -f bridge.mk
Build the perl extension module.
perl Makefile.PL make make test sudo make install
Try it out.
This module requires these other modules and libraries:
Copyright and Licence
Copyright (C) 2009 by Fictorial LLC.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.