in reply to browser interface for local script

You mean a "simple HTTP server"? Like, say, HTTP::Server::Simple ? ;-) It is quite easy to use and is quite easy to plug your code into. I gave a (German) talk on it, and thanks to a cool trick ysth taught me, the goofy English translation of the slides is also available. The Perl code suffers a bit from it, though - the use cousin pragma has fallen out of favour except in the midwest I think.