I finally got round to running my experiments and Data::FormValidator copes fine in a real case. It seems I must remember that on the command line I need to explicitly set the variables as the script would in a real server environment. It seems obvious when I spell it out to myself.