Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Change URIs in Text to HTML-Links

by strat (Canon)
on Nov 07, 2002 at 11:41 UTC ( #211046=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    use strict;
    ...
    # lets have a look at the result
    print "$howManyFound URIs found\n";
    print "$text\n";
    
  2. or download this
    use URI::Find; # instead of URI::Find::Schemeless
    ...
    ...
      );
    
    ...
    
  3. or download this
    BEGIN {
      use FindBin qw($Bin);
      use lib "$Bin/lib";
    }
    use URI::Find::Schemeless;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://211046]
help
Chatterbox?
[choroba]: I already gave a similar talk to my friends in a pub and at an internal conference at work and people liked it, so maybe...
[choroba]: LanX: That's the heritage, I can't do anything else
[RonW]: Sounds like some system my employer has "It does exactly what we need it to do and can't afford to risk anything we can't prove is 100% compatible"
[marto]: choroba sounds interesting
[RonW]: james28909 Why not write a Perl program to do the task?
[choroba]: RonW Yes, but then, one day, they needed to switch from FTP to SFTP, and... but I can't give the whole talk away here :)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-05-22 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?