>
> If I need to have object`s methods in a separate file is this only one way
> to do it? I mean using obj = Execute({object=>foo});
>
If you want to have methods that mixes HTML and Perl, then the anwser is
yes. For pure Perl methods you just use a normal Perl module
Gerald
-
>An Example for useage of Execute ({object => foo}) could be found at
>
>http://perl.apache.org/embperl/IntroEmbperlObject.pod.7.html#Subroutines_in
_
>EmbperlObject
>
>If this doesn't help, please describe what you want to do and I try to tell
>you which is the best solution with EmbperlObject
I
>>$obj, as you use it above, is intented if need an second object with
>>different inherece hierachie. Also you can store data in $obj, it is only
>>available to the pages that have access to $obj, so you have to store $obj
>>somewhere, e.g. in $req -> {obj}.
>I wonder I do not understand
>
>can
>$obj, as you use it above, is intented if need an second object with
>different inherece hierachie. Also you can store data in $obj, it is only
>available to the pages that have access to $obj, so you have to store $obj
>somewhere, e.g. in $req -> {obj}.
I wonder I do not understand
can you give
>
> In the second question I tried to answer (sory for my _bad_ english ;-) if
> it is stupid to do this:
>
> $obj = Execute({object => 'methods.epl'});
> $obj = $obj->new()
> $req = shift;
> $req->{property} = 'value';
>
> I can use EPO (Embperl object) for storing global (request) variables, can
>> What name do you use for EPO? $obj, $subs or $req?
I mean do you use:
$obj = Execute({object => 'methods.epl'});
or
$obj = Execute({object => 'methods.epl'});
or
$obj = Execute({object => 'methods.epl'});
...
In the second question I tried to answer (sory for my _bad_ english ;-) if
it is st
> >That are two different things. The $subs = ... creates a new object for
> >calling methods inside of subs.epl. That only interseting when you have
> >different subs.epl in different directory which inherit from each other.
> >
> >>From what you wrote I guess you just want to store your data g
>That are two different things. The $subs = ... creates a new object for
>calling methods inside of subs.epl. That only interseting when you have
>different subs.epl in different directory which inherit from each other.
>
>>From what you wrote I guess you just want to store your data globaly, then
>
> but can you send me some embeded perl objects (EPO) example source code
(or
> some small example site)?
>
Unfortunaltely I don't have small example I could send to you. The most
things I done with EO are so complex, that it would help you anythings
> i`m so confused!
>
> one tutorial say