[Zope-Perl] Script (Perl) question

Andy McKay andym@ActiveState.com
Wed, 24 Jan 2001 15:59:16 -0800


Yep, if I dont I get a "Global symbol "$self" requires explicit package name
at copy_of_testPl line"
--
  Andy McKay.


----- Original Message -----
From: "Chris McDonough" <chrism@digicool.com>
To: "Andy McKay" <andym@activestate.com>; <zope-perl@zope.org>
Sent: Wednesday, January 24, 2001 4:12 PM
Subject: Re: [Zope-Perl] Script (Perl) question


> Are you passing in "self" as an argument on the PerlM arguments line?
>
> ----- Original Message -----
> From: "Andy McKay" <andym@activestate.com>
> To: <zope-perl@zope.org>
> Sent: Wednesday, January 24, 2001 6:48 PM
> Subject: [Zope-Perl] Script (Perl) question
>
>
> > Whats $self in Zope Perl, AFAIK it is a binding to the scripts
container,
> > similar to context to Script (Python). Anyway the following works fine
in
> > python:
> >
> > return context.Control_Panel.objectIds()
> >
> > The same in Perl would be:
> >
> > return $self->Control_Panel->objectIds();
> >
> > but I get a __call__ error. The Zope Book suggests that I have the right
> > syntax. The problem seems to occur when moving into a sub-object, for
> > example $self->objectIds(); works just fine. Any ideas anyone?
> >
> > Using: Zope 2.3b2, Win2k, Python 1.5.2, Perl 620, pyperl &
> zoperl-1.0-beta3
> >
> > Cheers.
> >
> > --
> >   Andy McKay.
> >
> >
> >
> >
> > _______________________________________________
> > Zope-perl maillist  -  Zope-perl@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-perl
> >
> >
>
>
> _______________________________________________
> Zope-perl maillist  -  Zope-perl@zope.org
> http://lists.zope.org/mailman/listinfo/zope-perl
>