<perl_quotelike> must be something from a new version
of PRD - I've never seen it. I can guess what it does, but then I'm surprised it doesn't eat NoValDefaultsTo1.
I do understand why NoValDefaultsTo1 gets eaten as a 'val'
if you use something like /.*?$/ or
/\w+|"[^"]*"/. It's because you say that a
"single" consists of a "key" followed by zero or more "val"s.
There's no rule at all that says that NoValDefaultsTo1 can't
be one of the vals. PRD will skip whitespace between tokens,
and a newline is just the same as a space. PRD isn't saying
"Heh, I say a newline. Let me see, the programmer wanted me
to return from N levels of rule matching".
P.S. Could someone explain the difference between <leftop> and <rightop>
That's explained in the manual. But note that in many cases,
it doesn't matter which one you use.
Abigail
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.