Just another Perl shrine | |
PerlMonks |
Re^2: Answer: How do I replace a URL with a clickable hyperlink?by jhourcle (Prior) |
on Apr 06, 2005 at 03:50 UTC ( [id://445162]=note: print w/replies, xml ) | Need Help?? |
"ABC.com" is not a URL -- it's a domain. Assuming you had first matched the domain (and had it in a variable named $domain) and you knew that all of the domains were using a host named 'www' for protocol 'http', you could use: my $link = "<a href='http://www.$domain'>$domain</a>";How you match domains is up to you... but I know that I get annoyed when my jabber client thinks that my discussions about perl scripts should be turned into links to websites in Poland.
In Section
Seekers of Perl Wisdom
|
|