NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Tried something like that a long time ago (Score:1)
There was a plugin for IE a long time ago allowing people to turn on PerlScript in the browser.
The DOM was the same so it didn't feel different than JavaScript, however doing it limited you to a very small number of browsers.
It never caught on.
More promising would be something allowing you to compile some subset of Perl 6 to JavaScript. The issue is how big a subset that would be. (Eval is likely to be tricky...)