in reply to How to detect and make a link clickable Perl/CGI

Maybe you want to split the text not on spaces but on whitespace? See perlre for more information on character classes, especially \s.

Also, what is your strategy to avoid people posting Hello! <script>window.location="htt" + "p://google.com?q=some+spam+site</script> ?

Replies are listed 'Best First'.
Re^2: How to detect and make a link clickable Perl/CGI
by Muskovitz (Scribe) on Dec 15, 2015 at 13:31 UTC
    That would be blocked by HTML::Entities i think

      Indeed - I hadn't seen that. Using HTML::Entities should prevent you from interpolating things that a browser interprets as HTML tags into your output.