Muskovitz has asked for the wisdom of the Perl Monks concerning the following question:
but if you entered an enter character in your blog example: "hey guys try this link: http://site.com/<enter char>so nice!" yes it's clickable but the link is "http://site.com/so" it only stops in a space character any idea how to fix this? Thanks in advance!$query=qq{SELECT ....}; $queryhandle=$connect->prepare($query); $queryhandle->execute(); while(my $blog=$queryhandle->fetchrow_hashref()){ HTML::Entities:encode($blog->{blog_post}); for(split/ /, $blog->{blog_post}){ print "<a href='$_'>$_</a>" and next if $_=~m/^http/; } print "$_"; } print "<br />"; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to detect and make a link clickable Perl/CGI
by Your Mother (Archbishop) on Dec 15, 2015 at 13:42 UTC | |
by Muskovitz (Scribe) on Dec 15, 2015 at 13:50 UTC | |
|
Re: How to detect and make a link clickable Perl/CGI
by Corion (Patriarch) on Dec 15, 2015 at 13:27 UTC | |
by Muskovitz (Scribe) on Dec 15, 2015 at 13:31 UTC | |
by Corion (Patriarch) on Dec 15, 2015 at 13:40 UTC |