Menu

Problem with perl regex that looks like a "C" close comment

Ted Nolan
2012-12-21
2013-03-27
  • Ted Nolan

    Ted Nolan - 2012-12-21

    (Sorry if this arrives multiple times..)

    Hello,

    My program is doing a regsub to change multiple blanks in a string to
    just one blank:

        $addr_part =~ s/  */ /g;
    

    This triggers a warning:

    do_filter.pl:247: warning: found / without matching / while
    inside a \code block! Perhaps a missing \endcode?

    I think it also messes up doxygen commands following that function..

    Version 1.50..

    Any suggestions?

     
  • Peter Watkins

    Peter Watkins - 2013-03-27

    It looks to me like PerlDoxygen might need to escape something that it's not. In the meantime, can you do something like this:

    my $foo = "  */ ";
    $addr_part =~ s/$foo/g;
    
     
  • Bret Jordan

    Bret Jordan - 2013-03-27

    Interesting. I will have to try and look for that, unless you can find it and want to submit a patch.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.