Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Hosted Perlscript

Reply
Thread Tools

Hosted Perlscript

 
 
mcmahon2@comcast.net
Guest
Posts: n/a
 
      02-16-2006
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

 
Reply With Quote
 
 
 
 
Matt Garrish
Guest
Posts: n/a
 
      02-17-2006

<> wrote in message
news: oups.com...
> 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


 
Reply With Quote
 
 
 
 
mcmahon2@comcast.net
Guest
Posts: n/a
 
      02-17-2006
Matt
I could have sworn I had tried that before. Evidently not, that worked.
Thank you very much
Bill

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Framecheck does only work with static pages, not with perlscript-output Carsten Brauer Java 1 11-24-2004 02:34 PM
Unable to run perlscript Naren Ramakrishnan Perl 0 07-13-2004 11:45 AM
Using PerlScript In ASP KaXo Perl 2 03-03-2004 08:01 AM
Passing Variables from One Perlscript to Another Joe Perl 1 09-30-2003 11:03 PM
Access Right for Perlscript to Read Windows EventLog Remotely Joe Perl 1 09-29-2003 05:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57