Why isn't this perl method working?
11 Feb
2002
11 Feb
'02
9:45 a.m.
I have this little perl method: ------------------------------- my $accept_language=$REQUEST->get_header(*name=>'ACCEPT_LANGUAGE'); return $accept_language; ------------------------------- I get this PerlError: 'Usage: Python::PyObject_GetAttr(o, attrname) at /home/zope/lib/perl/Zope.pm line 118. ' Isn't this the correct syntax? I use REQUEST as an argument. Since I can't use 'use Python' in a method I cannot use the other calling-system. What am I doing wrong? As you probably can understand, I'm going to return the accept-language CGI-var as an array to the client, listed in order of preference... Zope 2.5.0 Perl 5.6.1 with ithreads Latest stable pyperl and zoperl (installed after the manual). -- Robin
8820
Age (days ago)
8820
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robin Smidsrod