in reply to mysql error

You might try
printf STDERR "%s\n", join "\n", @INC;
and compare the command line output to the CGI output to get an idea of which modules are being used.

Replies are listed 'Best First'.
Re^2: mysql error
by dcscott (Novice) on Feb 16, 2024 at 18:26 UTC
    I don't know what this means: root@localhost:/var/www/4# printf STDERR "%s\n", join "\n", @INC STDERRroot@localhost:/var/www/4#
      Maybe instead write the @INC list to a file so it's easier to see like so:
      { my $fh; open $fh, ">", "/tmp/inc.$$"; printf $fh "%s\n", scalar localtime; printf $fh "%s\n", join "\n", @INC; }

        However: cat /tmp/inc.6387

        Fri Feb 16 18:55:35 2024 .

        /usr/local/lib/perl5/site_perl/5.38.2/x86_64-linux

        /usr/local/lib/perl5/site_perl/5.38.2

        /usr/local/lib/perl5/5.38.2/x86_64-linux

        /usr/local/lib/perl5/5.38.2

        The result is empty both in the browser and command line.