in reply to replace url in text with html link

Try this regex on your lines, whole file, etc.

$string =~ s/(https?:\/\/.*)(?:\s|\.)/<a href="\1">\1<\/a>/oig;

I may not be perfect depending on your data, but it should work in most cases.

Frank Wiles <frank@wiles.org>
http://www.wiles.org