in reply to Adding variables to Spew grammar
Note my security bug in the manpage though... any code contained within the "double quote inline executors" will be executed, so you might be able to get a similar effect with something like:
Actually, that may even work without the extra layer of evaluation there. Dunno. Maybe I should add replaceable components to the spew language.BEGIN { our $foo = "Matt" } # has to be BEGIN to be early enough use Inline Spew => q{ person: "@{[$foo]}" START: person | person person };
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|