F
Fred
Hello there,
I copy and paste snippets from newsletters (and other messages) to
large textfiles. I use Perl to add HTML labels for formatting, and I
use the following code to convert URL's to hyperlinks:
local $/;
while (<>){
s/ *?(http:.+?) *?[^<]\n/<p><a href="$1">\n$1<\/a><br>\n/igs ;
print $_;
}
I have converted textfiles with about 300 URL's and so far all
hyperlinks created worked fine in Mozilla.
Question: How could I do the conversion to hyperlinks with a module?
I copy and paste snippets from newsletters (and other messages) to
large textfiles. I use Perl to add HTML labels for formatting, and I
use the following code to convert URL's to hyperlinks:
local $/;
while (<>){
s/ *?(http:.+?) *?[^<]\n/<p><a href="$1">\n$1<\/a><br>\n/igs ;
print $_;
}
I have converted textfiles with about 300 URL's and so far all
hyperlinks created worked fine in Mozilla.
Question: How could I do the conversion to hyperlinks with a module?