On Monday 25 November 2002 22:36, Daisuke Maki wrote:
> > OK, so the line 16 that it complains about, that seems to be this
> > do { data1 };
> >
> > Does that mean anything to you?
>
> That's a bareword.
Yep.
> You can't use a bareword with strict.
Yep, that's understood too.
> It's hard to tell just from the XSP output what you were tyring to
> do,
Oh, I'm trying to write my first taglib using SimpleTaglib, and the
problem is that I can't even get a stripped-down taglib working... The
whole code of my taglib was in the first e-mail in this thread, but
this is an excerpt for quick reference (initialization and stuff is
above):
package Kjetils::XSP::Test1::Handlers;
sub report
{
my $data = "data1";
return $data;
}
(added "my" as suggested by Sebastian)
> but I think you either wanted to
> a) use the string constant "data1", or
Yep, so now, it is a string constant, but that's just because it is a
minimal stripped-down example. What I'm really up to is to write a DBI
taglib to access my database... :-)
> b) use some variable named $data1 (or @data1 or %data1)
>
> if a), you would do something like
>
> <test>data1</test> <-- i.e., no perl code... just use plain XML
> if you want to a constant, plain XML.
Yep, but then I couldn't test to see if my taglib is working... :-)
(Just to be sure, I've tested what you proposed before, it worked!)
>
> if b), you need to do something like
>
> <xsp:logic>
I'd like to avoid mixing logic and markup, so I'm sticking to taglibs
strictly... :-)
Thanks for your reply too! I guess I need some help to get started...
:-)
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]