Not sure if this is what you are after or not, but PAR::Packer seems like it might be worth looking at.
...Hope there is something there for you...
...the majority is always wrong, and always the last to know about it... Insanity: Doing the same thing over and over again and expecting different results...