Using XML-Stream without Encode.pm
I needed to write a notification script for AMMS, so that a mail server administrator can be notified by IM when the MTA is down.
So I set out to install the popular Net::Jabber module, but soon found it to be tricky. I was using Perl 5.6.1, and chasing the dependency tree led me to XML::Stream, which listed Perl 5.8 as a pre-requisite.
The thing is, the only feature from Perl 5.8 required by XML::Stream is the Encode.pm module. I found the Unicode::UTF8simple module, which was created exactly to fill that gap for us late adopters.
So, here it is, if you wish to install XML::Stream on Perl 5.6 (may work on other versions but I have not tested), you can apply this patch to lib/XML/Stream.pm before running perl Makefile.PL.
p.s.: Had I used the ever-”useful” CPAN shell to install Net::Jabber, I guess it would’ve proceeded to build a new Perl distribution on my humble Pentium 300Mhz laptop with 32MB of memory.
Related posts:
- Memcached on Solaris If you observe memcached exhibiting strange behavior while running under Solaris, you should try upgrading to the latest version of...
- Java SSL Implementation does not detect disconnected socket To be exact, Sun’s JSSE SSL/TLS implementation ignores the EOFException that is generated when its underlying socket was closed properly...
- web.py with mod_python on Apache Normally, I’m a Django-head, but today I wanted a quick way to write a small web app and have heard...
- Tornado with VirtualEnv and Pip Quickstart Friendfeed’s open source Tornado web server is great, and is incredibly easy to get up-and-running. Just install tornado, write your...
- GearSaver Reloaded The GearSaver Bookmarklet was not that useful since there was no easy way to use the saved data. Since this...
Related posts brought to you by Yet Another Related Posts Plugin.