I wrote:
=> || return 0 if $rule !~ m{
=> || ($xTerm*) $xNon_term+ ($xTerm*) # LHS
=> || $xArrow
=> || $1 $xAlphabet* $2 # RHS
=> || }x;
That should be "\1" and "\2" instead of $1 and $2. I should
have caught that before I sent off my email. :-S
Also note that $xTerm, $xNon_term, and $xArrow should only
use non-capturing parentheses, if at all. $xAlphabet should
preferably do the same, as a coding style, although it
doesn't impact this example.
peace, || Rainwater Harvesting in Karnataka:
--{kr.pA} || http://makeashorterlink.com/?J21521932
--
GAAP, n.: the reason for the gaap between the balance sheet and reality.