Thanks so much for the response!
On Monday 25 November 2002 21:27, Sebastian Rahtz wrote:
>
> it wants you to say
> my $data= "data1";
> instead of
> $data = "data1";
Really? I thought I had tried that... I tried that again, and it didn't
correct the problem... Lets see if I can dig up something more. Here's
more of the log:
----------------------------------- Log -------------------------------
1 package Apache::AxKit::Language::XSP::ROOT::var::www::test1_2exsp;
@Apache::AxKit::Language::XSP::ROOT::var::www::test1_2exsp::ISA =
('Apache::AxKit::Language::XSP::Page');
2 use Apache;
3 use Apache::Constants qw(:common);
4 use XML::LibXML;#initialize xsp namespace
5 #initialize xsp namespace
6
7 sub handler {
8 my ($r, $cgi, $document) = @_;
9 my ($parent);
10
11 { my $elem =
$document->createElement(q|data|);$document->setDocumentElement($elem);
$parent = $elem; }
12 { my $elem =
$document->createElement(q|title|);$parent->appendChild($elem); $parent
= $elem; }
13 { my $text = $document->createTextNode(q|My Test
Database|);$parent->appendChild($text); }
14 $parent = $parent->getParentNode;
15 { my $elem =
$document->createElement(q|test|);$parent->appendChild($elem); $parent
= $elem; }
16 do { data1 };
17 $parent = $parent->getParentNode;
18 $parent = $parent->getParentNode;
19
20 return OK;
21 }
22
[Mon Nov 25 22:14:11 2002] [warn] [client 127.0.0.1] [AxKit] Caught an
exception
[Mon Nov 25 22:14:11 2002] [error] [client 127.0.0.1] [AxKit] [Error]
Compilation failed: Bareword "data1" not allowed while "strict subs" in
use at (eval 11) line 16.
------------------- End log ------------------
OK, so the line 16 that it complains about, that seems to be this
do { data1 };
Does that mean anything to you?
Thanks again for helping, it is greatly appreciated!
Best,
Kjetil
--
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]