in reply to Re^2: Running in Terminal, but not on Server
in thread Running in Terminal, but not on Server

CGI is shipped with perl since perl 5.4, which is more than ten years old - chances are that CGI.pm is already installed.

As for the debugging, try use CGI::Carp qw(fatalsToBrowser); as your first line of code - it will print error messages to the browser. (And yes, CGI::Carp is also a core module since perl 5.4).

If you can't even access core modules, then either find another server to work on, or chose a different language. Perl without modules really sucks, compared to other languages with modules/libs.

And btw there is cgipan, which installs CPAN modules via CGI ;-)

Replies are listed 'Best First'.
Re^4: Running in Terminal, but not on Server
by ShaZe (Novice) on Jan 24, 2008 at 23:36 UTC

    Ok, I tryed what you said, to find out that what you said was true, Carp is a core module so the fuction as worked.

    Very useful, I can now know everything that goes wrong, there's even a message that write my email to report the error message, pretty nice.

    Otherwise, I found what it is.... The file can't be found, you had 50% of the answer. This is probably because the directory that got the files is protected with chmod and maybe something else, htaccess. It's a little bit normal because it is a forum.

    But I was sure that the server could use it for itself.... as hes the owner of thoses files.... So now, I really don't know what to do... I will maybe try to play with the chmods, but I don't want to create new security hole...

    Hmm and wasn't the script suppose to tell me that it was not able to open it with the die information?..

    Well, thanks a lots for everything I leanred, I will try to see what I can do with that. There's probably a way, because the forum is also in perl, and it always create and modify files. Gotta try a few things.

    Thank!

      Hmm and wasn't the script suppose to tell me that it was not able to open it with the die information?..

      Read the reply given by moritz again, particularly the bit about use CGI::Carp qw(fatalsToBrowser);