You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Edouard Lagache <la...@canebas.org> on 2003/04/09 19:02:02 UTC
Doh!! :-) (Re: epoexec.pl ... object_base(??))
OOOOOOPS!!!! :-)
Thanks Gerald!! Oh well, at least I'm consistent! :-)
For those keeping score at home, there was one more error in my code.
$object_addpath needs an array reference of paths, not just a string.
The working code snippet is:
use Embperl;
use Embperl::Object ;
use strict;
our ($object_base, $object_addpath);
$object_base = "CanebasTemplate.epl";
$object_addpath = [ "/home/httpd/htdocs/" ];
my $rc = Embperl::Object::Execute ({inputfile => $ARGV[0],
outputfile => $ARGV[1],
object_addpath => $object_addpath,
object_base => $object_base,
appname => 'Canebas App',
}
);
if ($rc) {
print STDERR "Problem executing: $rc\n";
}
Peace to all! Edouard :-)
======================================
Gerald Richter <ri...@ecos.de> wrote at Wed, 9 Apr 2003 10:17:10 +0200
>You need the appname parameter...
>
>>
>> my $rc = Embperl::Object::Execute ({inputfile => $ARGV[0],
>> outputfile => $ARGV[1],
>> object_addpath => $object_addpath,
>> object_base => $object_base,
>
>appname => 'unquie name'
>
>> }
>> );
>>
>
>Gerald
>
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org