Gossamer Forum
Home : General : Perl Programming :

Re: [delicia] making href

Quote Reply
Re: [delicia] making href In reply to
Glad to hear it :)

Quote:
please review your wish list to be sure it's correct!

Thanks - just done that. Need to remember to update that a bit more often! (especially after Christmas Angelic)

With regards to the line breaks - thats because its doing a <while> loop, so the newlines are not transferred. Try it with:

Code:
open (TEXT, "<$save_text_dir/$rec{$db_key}.txt") or &cgierr("error in displaying record. unable to open text file $save_text_dir/$rec{$db_key}.txt\nReason: $!");
while (<TEXT>) {
s|\b(https?\://\S+[^-.,\"\';:])\b|<a href="$1">$1</a>|g;
$text .= "$_\n";
}
close TEXT;

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread making href delicia 10516 Feb 16, 2017, 2:11 PM
Thread Re: [delicia] making href
Andy 10344 Feb 16, 2017, 11:02 PM
Thread Re: [Andy] making href
delicia 10334 Feb 17, 2017, 6:35 AM
Thread Re: [delicia] making href
Andy 10330 Feb 17, 2017, 6:40 AM
Thread Re: [Andy] making href
delicia 10334 Feb 17, 2017, 6:45 AM
Thread Re: [delicia] making href
Andy 10327 Feb 17, 2017, 6:46 AM
Thread Re: [Andy] making href
delicia 10328 Feb 17, 2017, 8:53 AM
Thread Re: [delicia] making href
Andy 10344 Feb 17, 2017, 8:55 AM
Thread Re: [Andy] making href
delicia 10313 Feb 17, 2017, 9:01 AM
Post Re: [delicia] making href
Andy 10310 Feb 17, 2017, 9:03 AM