in reply to 500 Error and Carp wont help?

Sory if this is a granny-egg-sucking lesson, but have you checked your error logs? Is it executable etc.? Logs know all.....

Cheers, Ben.

Replies are listed 'Best First'.
Re: Re: 500 Error and Carp wont help?
by mojo_the_helper (Novice) on May 19, 2003 at 15:36 UTC
    alas I have my server error logs show as follows, and the script is set to 755 permissions by the way,
    Use of reserved word "our" is deprecated at ./step_through.cgi line 27 + (#1) (D) The indicated bareword is a reserved word. Future versions of + perl may use it as a keyword, so you're better off either explicitly qu +oting the word in a manner appropriate for its context of use, or using +a different name altogether. The warning can be suppressed for subr +outine names by either adding a & prefix, or using a package qualifier, e.g. &our(), or Foo::our(). Global symbol "$post_data" requires explicit package name at ./step_th +rough.cgi line 27 (#2) (F) You've said "use strict vars", which indicates that all variab +les must either be lexically scoped (using "my"), or explicitly qualif +ied to say which package the global variable is in (using "::"). Use of reserved word "our" is deprecated at ./step_through.cgi line 28 + (#1) Global symbol "$username" requires explicit package name at ./step_thr +ough.cgi line 28 (#2) Use of reserved word "our" is deprecated at ./step_through.cgi line 29 + (#1) Global symbol "$on_off" requires explicit package name at ./step_throu +gh.cgi line 29 (#2) Use of reserved word "our" is deprecated at ./step_through.cgi line 30 + (#1) Global symbol "$message" requires explicit package name at ./step_thro +ugh.cgi line 30 (#2) Use of reserved word "our" is deprecated at ./step_through.cgi line 31 + (#1) Global symbol "$path_to_authorize" requires explicit package name at ./step_through.cgi line 31 (#2) Use of reserved word "our" is deprecated at ./step_through.cgi line 32 + (#1) Bareword "our" not allowed while "strict subs" in use at ./step_throug +h.cgi line 32 (#3) (F) With "strict subs" in use, a bareword is only allowed as a subroutine identifier, in curly brackets or to the left of the "=> +" symbol. Perhaps you need to predeclare a subroutine? Unquoted string "our" may clash with future reserved word at ./step_th +rough.cgi line 32 (#4) (W) You used a bareword that might someday be claimed as a reserve +d word. It's best to put such a word in quotes, or capitalize it somehow, +or insert an underbar into it. You might also declare it as a subroutine. Array found where operator expected at ./step_through.cgi line 32, at +end of line (#5) (S) The Perl lexer knows whether to expect a term or an operator. + If it sees what it knows to be a term when it was expecting to see an op +erator, it gives you this warning. Usually it indicates that an operator +or delimiter was omitted, such as a semicolon. (Do you need to predeclare our?) syntax error at ./step_through.cgi line 32, near "our @junk" Global symbol "@junk" requires explicit package name at ./step_through +.cgi line 32 (#2) Use of reserved word "our" is deprecated at ./step_through.cgi line 33 + (#1) Global symbol "$runme" requires explicit package name at ./step_throug +h.cgi line 33 (#2) Use of reserved word "our" is deprecated at ./step_through.cgi line 34 + (#1) Global symbol "$output" requires explicit package name at ./step_throu +gh.cgi line 34 (#2) Execution of ./step_through.cgi aborted due to compilation errors (#6) (F) The final summary message when a Perl compilation fails. Uncaught exception from user code: Execution of ./step_through.cgi aborted due to compilation err +ors.
    as you can see these logs make no sense to me otherwise I would know why all of a sudden our is no longer safe to use when it was just fine through a different interface

      Looks like you're trying to use "our" in a version of Perl that doesn't support it. "our" was introduced in Perl 5.6.0 - what version is yours?


      --
      <http://www.dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg

        much older, thanks for asking after this post I will begin upgrading to 5.8....... I never would have thought of that
      The indicated bareword is a reserved word. Future versions of perl may use it as a keyword...

      ...and indeed they did - version 5.6 onwards. I think you'll either have to update your perl, or use another declaration type - 'my' or 'use vars' etc.
      /me rereads the original post... so it looks like your shebang line is calling an older version of perl than your command line....

      Cheers,Ben