[Zope-Perl] Newbie Question
Andy McKay
andym@ActiveState.com
Mon, 13 Aug 2001 09:06:05 -0700
Create a Script (Perl) object.
Type into the arguments field: self
Type into the code field the code bit.
Cheers.
--
Andy McKay.
----- Original Message -----
From: "Chris Yunker" <chrisyunker@yahoo.com>
To: <zope-perl@zope.org>
Sent: Friday, August 03, 2001 1:00 PM
Subject: [Zope-Perl] Newbie Question
> OK, I just got my system configured to run Zope Perl
> (thanks to Fischer Ulrich).
>
> Now I'm trying to run just a basic, test Perl script.
> I can't seem to find docs on step by step instructions
> on how to do this. The best I could find was
> (http://www.zope.org/Members/andym/ScriptPerl) where
> the simple example was presented:
>
> >>>>>>
> Example 1: self
>
> Arguments: self
> Code:
>
> my @res;
>
> for ($self->objectValues()) {
> push(@res, $_->getId());
> }
> return join("\n", @res);
> <<<<<<
>
> My question is this, given the above example, how do I
> implement it? Do I create a 'Script (Python)' object?
> If so, do I just cut and paste the above code in the
> text window? (that didn't seem to work) Do I have to
> wrap the above code in some kind of Python wrapper?
>
> Keep in mind, I've never written a line of Python
> (which is why I'm installing Zope-Perl...).
>
> Once again, any help is appreciated.
>
> Chris Yunker
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> _______________________________________________
> Zope-perl maillist - Zope-perl@zope.org
> http://lists.zope.org/mailman/listinfo/zope-perl
>