The script you passed to PerlEzCreate() should already have been executed by 
the tim PerlEzCreate() returns. But the interpreter
still hangs around at this point (and END blocks have not yet been executed).  
So you can call arbitrary functions, or evaluate
further Perl code before you destgroy the interpreter.

 

In general I prefer embedding Perl using its native embedding interface instead 
of using PerlEz, assuming you can write your
embedding code in C/C++:

 

http://docs.activestate.com/activeperl/5.10/lib/pods/perlembed.html

 

It is more work though, so for simple requirements PerlEz may be simpler to get 
working.

 

Cheers,

-Jan

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Claus Kick
Sent: Saturday, August 29, 2009 5:54 AM
To: [email protected]
Subject: PerlEZ question

 

Hello everyone,

Just for fun, I am implementing a Smalltalk->Perl bridge using ActiveState Perl 
(this is on windows), by using PerlEz.dll.

So far, I can load the library and create an interpreter, but then I am a bit 
lost, when it comes to actually calling a perl script.
I receive error 5 for my PerlEzCall1, which means that the function call caused 
an exception

http://docs.activestate.com/activeperl/5.8/Components/Windows/PerlEz.html

says for PerlEzCall1 to pass a pointer name of the function to call as second 
parameter.

But I pass the filename (I assume script name) as part of the PerlEzCreateOpt 
already - what do I need to pass here?



I would be very greatful for some help.



_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to