
I'm having a problem that's almost surely pilot error, but I'm at a bit of a loss. I'm getting the error: syntax error at /usr/home/otrs/gateway/OpenTRS/bin/cgi-bin/../../Kernel/Config.pm line 539, near "$_;" That line being $Self->$_; which is in LoadSubConfig. I diffed my Config.pm against the the original v1.67 of Config.pm, and I can't see anything obvious. Any ideas?

On 11/12/02 10:26 AM, "Kevin Way"
I'm getting the error: syntax error at /usr/home/otrs/gateway/OpenTRS/bin/cgi-bin/../../Kernel/Config.pm line 539, near "$_;"
I just checked, and I get the same error when I perl -cw index.pl with a completely unmodified stock installation as well. I'm running on FreeBSD 4.7-RELEASE-p1, with perl 5.005_03. Is there some sort of problem with this platform? (I'm generally a C/PHP programmer, not perl, so I'm a little bit out of my element here.) Kevin Way

On 11/12/02 11:23 AM, "Kevin Way"
I'm running on FreeBSD 4.7-RELEASE-p1, with perl 5.005_03. Is there some sort of problem with this platform? (I'm generally a C/PHP programmer, not perl, so I'm a little bit out of my element here.)
Well, I upgraded to perl 5.8.0, and the problem disappeared. If it doesn't work with 5.005_03 (which appears to be the case), perhaps the documentation should be updated (or at least something like require 5.006_001; be added to the source) Kevin Way

Hi Kevin, On Tue, Nov 12, 2002 at 12:31:49PM -0500, Kevin Way wrote:
On 11/12/02 11:23 AM, "Kevin Way"
wrote: I'm running on FreeBSD 4.7-RELEASE-p1, with perl 5.005_03. Is there some sort of problem with this platform? (I'm generally a C/PHP programmer, not perl, so I'm a little bit out of my element here.)
Well, I upgraded to perl 5.8.0, and the problem disappeared. If it doesn't work with 5.005_03 (which appears to be the case), perhaps the documentation should be updated (or at least something like require 5.006_001; be added to the source)
OTRS is also working with Perl 5.005_03. Unfortunately it's a syntax problem with OTRS 0.5 Beta8 in Kernel/Config.pm [...] push (@ISA, $Self->{SubConfigs}->{$_}); $Self->$_; [...] The problem on Perl 5.0 is, "$Self->$_;" if this is changed to "$Self->$_();" it will work fine on Perl 5.0. I changed it. Thanks for your info! :)
Kevin Way
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "The number of Unix installations has grown to 10, with more expected." The Unix Programmer's Manual, 2nd Edition, June 1972
participants (2)
-
Kevin Way
-
Martin Edenhofer