Posted on 2006-11-10 22:40:30-08 by jenda
Attaching both a subroutine and a builtin rule to a tag

Even though the implementations of all the builtin rules are rather simple I think it might be good to allow the user to use those, descriptive, names instead of the often slightly tricky implementations. I'm not sure about the best syntax though. I'm considering:

tag => sub {...; return \'as is'}, tag => [ sub {...}, 'as is'], tag => [ 'as is', sub {...}],

but maybe there's an even better syntax. Any suggestions or preferences?

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.