in reply to Re^2: mysql error
in thread mysql error

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; }

Replies are listed 'Best First'.
Re^4: mysql error
by dcscott (Novice) on Feb 16, 2024 at 19:03 UTC

    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

      Yeah, compare the paths in the /tmp/inc.XXX files to see how they differ. If the CGI version isn't printing the file maybe try to test the file open like:
      open $fh, ">", "/tmp/inc.$$" or die "error: failed to open file=/tmp/i +nc.$$ for writing.\n";
      If you know how to check if it's the CGI version you can change the file name from /tmp/inc.$$ to /tmp/inc.cgi or /tmp/inc.cl to make it easier to know which is which. But the time stamps should help with that as is.
Re^4: mysql error
by dcscott (Novice) on Feb 16, 2024 at 18:58 UTC

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