You're looking for
cometd, for which there are Perl implementations. It's written by the same guy who wrote
the Dojo JS framework - Alex knows his stuff.
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?