http://www.perlmonks.org?node_id=96152


in reply to Re: Nicer If...
in thread Nicer If...

similar to mine, but probably a little better, if you did !$query->param($_) it would return a list of empty ones, tho, which would allow you to throw a useful error to the user, the check even still works, but I'd just check to see if $#filled == $#req_fields || !@filled, instead of hardcoding a number

                - Ant