Glad to hear it :)
Thanks - just done that. Need to remember to update that a bit more often! (especially after Christmas )
With regards to the line breaks - thats because its doing a <while> loop, so the newlines are not transferred. Try it with:
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!
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 )
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!