in reply to Adding variables to Spew grammar

I believe your problem has to do with compile-time vs Run-time.

The "Inline" module generates code - that code gets generated BEFORE the "$foo="Matt" statement gets evaluated.

Not sure what the solution to this would be, but you can experiment with BEGIN blocks, to apply a value to $foo before the Inline module is invoked.

     "There are only two truly infinite things. The universe and stupidity, and I'm not too sure about the universe"- Albert Einstein