$test = "$5.1"; $grammar = q { input: dollar decimal dollar : /\$/ { $item[1] } decimal : /[-+]?(\d+)?\.\d+/ { warn "decimal! $item[1]" } ...
i keep getting an error during a parse. does anyone see what i am doing wrong? if i replace $ with a % sign in the grammar and $test then everything works but the dollar is giving me a hard time. any help would be greatly appreciated. this sounds like a very trivial problem but i just don't see it.
-- http://unk1911.blogspot.com
In reply to Parse::RecDescent and dollar sign by unk1911
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |