by Randy M. Kaplan. It's a little rough going at times, and doesn't contain anything about application to Perl, but has some great stuff about how to design and implement scripting languages. You can take the stuff it says and apply it using yacc,
. It contains examples of the kinds of grammars you'd need to write to use a parser generator.