Hosted Perlscript

M

mcmahon2

I'm developing an app that hosts ActiveScript engines. I've tested
VBScript, JScript, Python w/o any problems. However using ActivePerl,
objects (Site) that are added via AddNamedItem to the engine are not
accessible within the script itself. I receive the following error

Can't locate object method "LogDevice" via package "Site" (perhaps you
forgot to load "Site"?) at (eval 2) line 14


when executing
Site->LogDevice("Hello from Perl Script");


Any special handling of the object references within Perl ?


Thanks
Bill
 
M

Matt Garrish

I'm developing an app that hosts ActiveScript engines. I've tested
VBScript, JScript, Python w/o any problems. However using ActivePerl,
objects (Site) that are added via AddNamedItem to the engine are not
accessible within the script itself. I receive the following error

Can't locate object method "LogDevice" via package "Site" (perhaps you
forgot to load "Site"?) at (eval 2) line 14


when executing
Site->LogDevice("Hello from Perl Script");

Normally you would write $Response->, $Session->, etc. for the built-in
objects. I assume your Site object would work the same.

Matt
 
M

mcmahon2

Matt
I could have sworn I had tried that before. Evidently not, that worked.
Thank you very much
Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top