in reply to Re: mysql error
in thread mysql error

I don't know what this means: root@localhost:/var/www/4# printf STDERR "%s\n", join "\n", @INC STDERRroot@localhost:/var/www/4#

Replies are listed 'Best First'.
Re^3: mysql error
by Danny (Chaplain) on Feb 16, 2024 at 18:47 UTC
    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

        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.

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