|
Posted by Sisyphus on March 4, 2006, 1:17 am
Please log in for more thread options
> Rob,
>
> Thanks for your reply. I tried just letting things be and loaded up
> myadmin.cgi in a browser. Interstingly, I got pretty much the same
> error message I saw when trying to load CGI.pm:
There's no error about being unable to find CGI.pm - which would indicate
that (assuming an attempt has been made to load Carp.pm) it was found.
>
> CGI Error
> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers. The headers it did return are:
>
>
> Array found where operator expected at c:/Perl/lib/Carp.pm line 424, at
> end of line
> (Do you need to predeclare Carp::longmess?)
> Array found where operator expected at c:/Perl/lib/Carp.pm line 425, at
> end of line
> (Do you need to predeclare Carp::shortmess?)
> Array found where operator expected at c:/Perl/lib/Carp.pm line 426, at
> end of line
> (Do you need to predeclare Carp::shortmess?)
> Array found where operator expected at c:/Perl/lib/Carp.pm line 427, at
> end of line
> (Do you need to predeclare Carp::longmess?)
> syntax error at c:/Perl/lib/Carp.pm line 424, near "Carp::longmess @_"
> syntax error at c:/Perl/lib/Carp.pm line 425, near "Carp::shortmess @_"
> syntax error at c:/Perl/lib/Carp.pm line 426, near "Carp::shortmess @_"
> syntax error at c:/Perl/lib/Carp.pm line 427, near "Carp::longmess @_"
>
Those errors make no sense - Carp.pm doesn't contain 424 lines on my AS perl
5.8.7 (build 815):
E:\>perl -e "open RD, 'C:/perl/lib/Carp.pm' or die $!;while(<RD>){};print
$.;close RD or die $!"
For me that prints 274, indicating that Carp.pm contains only 274 lines.
If the re-install doesn't fix the problem, you might want to start with a
smaller and simpler test script.
Cheers,
Rob
|