in reply to How to define a list of regular expressions?

Syntax highlighting in my editor already informs me that this is syntactically unacceptable.
I'm curious. I don't spot a syntax error in your code fragment (except for the '...' parts).
  • Comment on Re: How to define a list of regular expressions?

Replies are listed 'Best First'.
Re^2: How to define a list of regular expressions?
by pat_mc (Pilgrim) on Jul 01, 2009 at 10:18 UTC
    Very observant of you, JavaFan - I misinterpreted my editor's change in highlighting colour inside the slashes which was due to the fact that the quote contained a variable, not a syntax error. Please ignore my comment on the syntax error.
Re^2: How to define a list of regular expressions?
by afoken (Chancellor) on Jul 01, 2009 at 14:36 UTC

    I don't know a single editor that can properly syntax-highlight arbitary perl code. Some editors are rather clever, but some are already confused when the code contains POD. Quotes in regular expressions with slash-replacements confuse all editors I know.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Quotes in regular expressions with slash-replacements confuse all editors I know.

      You must not know Scintilla based editors (scite/notepad++...) or jEdit :)