On Mon, Apr 24, 2006 at 08:00:55AM -0700, Larry Wall wrote: : If you want to reset to before the key for some reason, you can always : set .pos to $<KEY>.beg, or whatever the name of the method is. Hmm, : that looks like it's unspecced.
I'm wrong, it's already specced as .from and .to methods. So you can write mytoken => rule { :pos($<KEY>.from) ... } to start parsing from the beginning of the key. (Optional arg to :pos and :continue just added to S05, by the way.) Larry