"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You might also like to look at extending the regexp syntax I thought about this, but didn't have any experience doing so. I just went with what I know, but I may take a look at your code, and see how it works. It copies the contents of the last closed capture into the scalar variable named 'name' I'm not sure I like this part. The idea of extending regular expression syntax is nice, but storing the matches in arbitrary scalars seems a bit sloppy. Maybe this can be reworked to store the results in a hash. Something along the lines of:
This is only marginally better, though, because instead of clobbering any arbitrary number of scalar variables, it clobbers one hash. Maybe there's a cleaner way to handle this. In reply to Re^2: RFC: named pattern match tokens
by revdiablo
|
|