in reply to Re: •Homework alert! Re: validating string length with a regular expression
in thread validating string length with a regular expression

Rather than a callback coderef, you could simply add a "max length" parameter. That'd be a little more specific, and in line with the other parameters.

So, it was "bad design" rather than homework. Yup. Was equally likely in my book, hence the question.

-- Randal L. Schwartz, Perl hacker

  • Comment on •Re: Re: •Homework alert! Re: validating string length with a regular expression