In addition to "STRING" and "NUM", you could also accept a sub ref. That will allow custom validators. For that matter, you could create a constant called STRING containing a refs to the string validation sub. Same for NUM.
How do you plan to handle "a string or undef"? I imagine that's a common case.
In reply to Re: Testing Edges
by ikegami
in thread Testing Edges
by thekestrel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |