in reply to Another Parse::RecDescent Question

I'm no P::RD expert, but I did get your code to find the comment by changing the regex for DD_Style from
m{(\s+?--.*$)}
to
m{(\s*?--.*$)}

I'm not sure where the space before the -- went though.

Replies are listed 'Best First'.
Re: Re: Another Parse::RecDescent Question
by sth (Priest) on Nov 03, 2003 at 22:04 UTC

    Thanks Paladin! That's what I needed a objective set of eyes. I threw the ? in last because the Placeholder rule was matching the space. I should have looked more carefully, well actually I stared at it too long :-). Thanks again.