Hosted Perlscript

Discussion in 'Perl Misc' started by mcmahon2@comcast.net, Feb 16, 2006.

  1. Guest

    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
    , Feb 16, 2006
    #1
    1. Advertising

  2. Matt Garrish Guest

    <> wrote in message
    news:...
    > 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
    Matt Garrish, Feb 17, 2006
    #2
    1. Advertising

  3. Guest

    Matt
    I could have sworn I had tried that before. Evidently not, that worked.
    Thank you very much
    Bill
    , Feb 17, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe
    Replies:
    1
    Views:
    557
    Thomas Kratz
    Sep 29, 2003
  2. Joe
    Replies:
    1
    Views:
    1,146
    Jim Gibson
    Oct 1, 2003
  3. KaXo

    Using PerlScript In ASP

    KaXo, Mar 1, 2004, in forum: Perl
    Replies:
    2
    Views:
    588
  4. Naren Ramakrishnan

    Unable to run perlscript

    Naren Ramakrishnan, Jul 13, 2004, in forum: Perl
    Replies:
    0
    Views:
    491
    Naren Ramakrishnan
    Jul 13, 2004
  5. Carsten Brauer
    Replies:
    1
    Views:
    388
    Chris Smith
    Nov 24, 2004
Loading...

Share This Page