Posted on 2009-06-15 18:57:29-07 by simonm
Over-enthusiastic search-and-replace
Unfortunately, the text assembly performed by MicroMason means that use of the following terms (as shown, in all caps) will yield errors, as they are treated as assembler tokens instead of literal values: OUT, TOKEN, QUOTED.

The patch below helped me deal with the specific problem case we were facing, but there must be a more reliable, general-purpose approach...

Text/MicroMason/Base.pm, line 269:

- $typedef =~ s{\bOUT\b}{$output}g;
+ $typedef =~ s{\bOUT\(}{$output(}g;
Direct Responses: 11759 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.