The Shape of Everything
A website mostly about Mac stuff, written by Gus Mueller
» Acorn
» Retrobatch
» Twitter
» Mastodon
» Instagram
» Github
» Maybe Pizza?
» Archives
» Feed
» Micro feed
February 20, 2003
(This post is from my old, old, super old site. My views have changed over the years, hopefully my writing has improved, and there is now more than a handful of folks reading my site. Enjoy.)

Silly perl tricks- Here's how to take a string that has http:// urls in them and link em up for output to html:

$str =~ s!(http://\S+)!<a href="$1">$1</a>!g;

(stolen from the mt perl scripts)