Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Linkifying URLs in plain text

by jeffa (Bishop)
on Nov 21, 2008 at 16:28 UTC ( [id://725173]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    And another
    Web site: http://another.example.com/ (doesn't always work)
    Nice blog here: http://blog.example.com/niceblog/
    
  2. or download this
    sub {
        my $u = URI->new( $_[0] );
        return sprintf( '<a href="%s">%s%s</a>', $u, $u->host, $u->path );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://725173]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-16 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found