"Brian Michalk" <[EMAIL PROTECTED]> writes: > What the difference between the two skip definitions in lines 23 and 24?
to refrase the question: from within a grammar what is $skip and what is $Parse::RecDescent::skip? when you pass Parse::RecDescent a grammar string it does some very "interesting" things, it creates a new package (this is important), and bunch of functions in that package and returns an object blessed into that (dynamically created) package. So, from "within" a grammar $skip is NOT $Parse::RecDescent::skip because you aren't in the Parse::RecDescent package. you can do whatever you want to $skip (which is actually $Parse::RecDescent::00000001::skip or something) and $Parse::RecDescent::skip won't be affected. anyway, use $Parse::RecDescent::skip or even better, as Ted Zlatanov mentioned, the <skip> directive. hope this helps. if you want details have Parse::RecDescent pre compile the grmmar and have alook at the file it spits out. -- -Marco Ring the bells that still can ring. Forget your perfect offering. There is a crack in everything. That's how the light gets in. -Leonard Cohen