in reply to POD Meditation?
So, what's happening here is that:
is a here document (it starts with a blank line above =pod, and ends with a blank line), with =cut as terminator. The rest is just parsing this string.=pod This module uses the following constants: bang_eth => 1 biff => 2 krunch => 3
Why does it appear in the documentation? Because POD parsers actually don't parse POD. They parse anything between ^=\w and ^=cut, without looking at context, assuming to capture all the POD (and nothing but the POD). Most of the time, this heuristic works well, but as with all heuristics, it sometimes will break down, and someone will (a)buse it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: POD Meditation?
by temporal (Pilgrim) on Apr 27, 2012 at 20:58 UTC | |
by JavaFan (Canon) on Apr 27, 2012 at 21:05 UTC | |
by LanX (Saint) on Apr 28, 2012 at 12:47 UTC | |
by JavaFan (Canon) on Apr 28, 2012 at 17:07 UTC | |
by LanX (Saint) on Apr 28, 2012 at 21:10 UTC | |
|