in reply to javascript interpreter in perl???

Don't know whether this has any relevance to your question, but you can build Mozilla's javascript engine, SpiderMonkey, and use JavaScript::SpiderMonkey as a Perl interface.

Software speaks in tongues of man; I debug, therefore I code.
Stop saying 'script'. Stop saying 'line-noise'.