Thanks for your response.
I am trying this in embperl 2 b8.
In the main embperl file:
[- $r = shift -]
[- $r->{content} = Execute ({'object' =>
'/home/zo/zo/lib/zoweb/content/content.pm'}) -]
[- Execute ('/home/zo/zo/web/template.epl') -]
In template.epl:
[- $r = shift -]
<html>
<head>
<title>[+ $r->{content}->title +]</title>
In content.pm:
#package zoweb::content::content;
#use strict;
sub output {
}
sub title {
}
#1;
Embperl is dying at "<title>[+ $r->{content}->title +]</title>", with:
"Error in Perl code: Can't locate object method "title" via package
"Embperl::__2" (perhaps you forgot to load "Embperl::__2"?)"
I threw Data::Dump on $r->{content} and it revealed:
bless({}, "Embperl::__2")
Any ideas? :-(
> -----Original Message-----
> From: Gavin Carr [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 5:52 PM
> To: Justin M. Harrison
> Cc: [EMAIL PROTECTED]
> Subject: Re: Execute
>
>
> On Mon, Jul 22, 2002 at 05:54:16PM -0400, Justin M. Harrison wrote:
> > Is there any consolidated documentation on what exactly Execute can
> > do, and how files can be brought in or executed? Everything I have
> > found about it seems to be scattered about Embperl,
> Embperl::Object,
> > etc, in both documentation and introduction...
> >
> > Reading through the documentation I have found several
> different uses
> > of it, but I am wondering if there are more
> > (http://perl.apache.org/embperl/pod/doc/Embperl.-page-3-.htm#sect_7
> > shows " [- Execute ({ inputfile => 'mylib.htm', import => 1 }) -]",
> > then on
> >
> http://perl.apache.org/embperl/pod/doc/Embperl> Object.-page-6-.htm
"[-
> > Execute ('foot.htm') -]", and
> > http://perl.apache.org/embperl/pod/intro/Intro.-page-7-.htm
> shows [-
> > Execute ('navbar.html', 'Infos') -] as a possible use. Whats the
> > syntax for it?")
>
> In the 1.3 docs it's laid out pretty well here:
>
http://perl.apache.org/embperl/pod/doc/doc13/HTML/Embperl.-page-3-.htm#s
ect_4
I'm not sure if there's an equivalent section in the 2.0 docs yet.
Cheers,
Gavin
--
Fashion is a variable, but style is a constant - Programming Perl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]