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


in reply to Re^2: Imploding URLs
in thread Imploding URLs

So though I have a large collection of URLs (from my logs), I need to "implode" URLs on a one-by-one basis.

Why? Is the space savings that significant?

If all you have is a handful of substitutions, you can probably hand-pick the strings:

http www. .com .org .net :// index .htm .jpg .gif google yahoo mail news ebay