Anything that let you do this from the browser is likely to be a bad security hole to say the least, and there's certainly no way to do it with perl. I think you could probably write a plugin for firefox, but it'd be pretty challenging and it'd be a real problem if the plugin were popular as it would give remote attackers access to everything on the users' LAN.
... did I misunderstand the question?