If you use
ActivePerl,
you can write
client side
Perl scripts, just as you might write client side
Javascript. Be aware of the security implications
of doing this: you don't want malicious Web pages
to include things like
unlink within
<SCRIPT> tags, for example.