I am not forgetting. The problem happens only when I take the module out of an app subdirectory and change the corresponding use lib;directory.
#!/usr/bin/perl -T
use strict;
use warnings;
#use lib "/var/www/cgi-bin/survey/lib";
use lib "/home/davidj/perl/lib/survey";
use CGI qw/standard/;
use survey;