OK, if you don't know Perl, I strongly recommend not playing with this. Just my $0.02. But I can't help thinking that the guy who invented this package is just cool.
http://www-106.ibm.com/developerworks/linux/library/l-cpmp31.html?ca=dgr-lnxw01CultPerlP1