Make Switch.pm skip POD like perl does
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 28 Dec 2008 22:30:57 +0000 (23:30 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 30 Mar 2009 17:13:37 +0000 (18:13 +0100)
commitb78dd67c3c42a0cd4f2f2d03122ddf9e84c012d9
tree39144cb4a1cffe000327dafcd77698065249ffb6
parent901dd0ea014e952e2efd4b67e258cd414f40cb38
Make Switch.pm skip POD like perl does

Patch provided by Daniel Klein <danielklein-à-airpost.net> :

  It also doesn't check for invalid POD which gets ignored by the
  compiler anyway.

Seems that Damian had a POD parser in mind when he devised those
regular expressions, but perl only looks for =cut followed by a
non-letter.

(cherry picked from commit 39bcdda02ea582e7bdf8b0cf2e7186e89c6baea9)
lib/Switch.pm