in reply to Building a Hash with Multiple Values

If you wish to embed whitespace (newlines, spaces, tabs), and '#' initiated comments in a regular expression, you should end the regexp with the /x modifier. See perlre for details.

The /x modifier is very useful because it makes it easy to break regular expressions into visually recognizable chunks, possibly spanning multiple lines.


Dave

  • Comment on Re: Building a Hash with Multiple Values