in reply to Re: RFC: CGI::Taintless
in thread RFC: CGI::Taintless
Somehow I think that CGI::Taintless isn't a very good name at all. Your focus should be on validating CGI params, with the side effect of untainting them. Maybe something along the lines of CGI::RegexValidate might be more appropriate as a name?
I personally believe that validating with regexen is fine and all, but the OP may want to extend his module to a more generic validating one allowing e.g. subs, arrayrefs (possibly to be matched against ~~) and whatever. Then I do know that actual untainting is performed by means of regexen, but then indeed it could be done so anyway, if those other "objects" match. Then he could name his module CGI::Validate::Untaint.
PS: [OT] I lost track of the ~~'s return value in list context issue, which you brought up to p5p: how did it end?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RFC: CGI::Taintless (~~ in scalar context)
by moritz (Cardinal) on Sep 24, 2008 at 14:31 UTC |