> From: Thompson, John [mailto:jth...@midwestern.edu] > Sent: Tuesday, 27 July 2010 2:47 AM Hi John,
> I am attempting to use the Execute({ object => '...' }) > feature but am seeing strange results. Here are my two files: Firstly, test.epl does not do what you think it does. It should read: [$ sub head $] [- print "head\n"; -] [$ endsub $] Secondly, to use embperl files as objects I believe you need to be using Embperl::Object which has additional configuration requirements. For offline processing I would suggest that it may be overkill. If all you want to do is execute a sub in another file then following approaches both work with standard Embperl: use Embperl; Embperl::Execute( { inputfile => 'test.epl', sub => 'head' } ); Embperl::Execute( 'test.epl#head' ); Cheers, Andrew > - embperl1.pl - > > use Embperl; > > > > my $obj = Embperl::Execute({ object => 'test.epl' }); > > print "[$obj]\n"; > > --- > > > > - test.epl - > > [$ sub head $] > > print "head\n"; > > [$ endsub $] > > > > print "main\n"; > > --- > > > > When I execute embperl1.pl I get: > > > > % perl embperl1.pl > > [0] > > > > Any ideas? I am on HP-UX itanium ia64, Embperl 2.3.0. I > decided to double check and make sure Embperl passed all > tests when I built it, it did. > > --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org For additional commands, e-mail: embperl-h...@perl.apache.org