We need Perl XMPP Jabber client for reading. That means there will be and account on our Jabber server and this script will log into this account. Then it will listen and receive messages. Based on content of those messages it will perform certain actions via system() or exec() calls.
Only one example action should be created by you. We will add more by our-self. We can code in Perl, however we cannot create XMPP client for reading. It has to properly coded and correct error handling for every routine is must-have.
We have our own Perl module [url removed, login to view] (attached) for connecting to Jabber. But it can only write to network. We need read routines to be added into this module.