Just another Perl shrine | |
PerlMonks |
Re: Is the skip: directive broken in Parse::RecDescent ?by ikegami (Patriarch) |
on Aug 11, 2008 at 21:44 UTC ( [id://703754]=note: print w/replies, xml ) | Need Help?? |
<skip:qr/#\w+/> 'foo' 'bar'
/#\w+/ isn't matched by the "#skdjslkdjsakdjadjlksa\n" before "foo" (note the newline).
I think you want <skip:qr/(?:#\w+\n)?/> By the way,
Update: Added "by the way" bit.
In Section
Seekers of Perl Wisdom
|
|