XP is just a number | |
PerlMonks |
Re^2: Parse::RecDescentby ikegami (Patriarch) |
on Mar 19, 2009 at 17:20 UTC ( [id://751798]=note: print w/replies, xml ) | Need Help?? |
No, you're right. What's in the top-level curlies ends up being top-level code in the package. My parsers always look like:
Note the use of heredocs. Much better than q{} since you don't have to escape some backslashes and some curlies. For example, to have a production match a single backslash, Single quote heredoc: rule: /\\/
In Section
Module Reviews
|
|