http://www.perlmonks.org?node_id=465378


in reply to Imploding URLs

Agreed. Sounds like you're looking for Compress::Zlib.

(If you intend this just as a fun exercise, then by all means go for it; but if this is for real use, you should use the standard and well-tested libraries.)