in reply to Re: Dependencies, or, How Common is Regexp::Common?
in thread Dependencies, or, How Common is Regexp::Common?

You must know more than I do. Are there Perl comments that aren't "start at #, continue to the end of the line"? Or are there any strings that if they follow a #, it's suddenly not a comment anymore?

Note that $RE{comment}{Perl} matches just that, a Perl comment. It's not a parser that extracts comments from valid Perl code. All the regexes from Regexp::Common are context free. Anything that is context sensitive should be coded by the user.

Abigail

  • Comment on Re: Dependencies, or, How Common is Regexp::Common?

Replies are listed 'Best First'.
Re: Re: Dependencies, or, How Common is Regexp::Common?
by hardburn (Abbot) on Sep 17, 2003 at 13:46 UTC

    I think the poster was talking about something like this:

    print " # This is not a comment\n";

    Or that insane Acme::Comment module, but people who use that in a real program deserve what they get :)

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated

      Which part of
      Note that $RE{comment}{Perl} matches just that, a Perl comment. It's not a parser that extracts comments from valid Perl code. All the regexes from Regexp::Common are context free. Anything that is context sensitive should be coded by the user.

      was unclear to you?

      Abigail

      A reply falls below the community's threshold of quality. You may see it by logging in.