Joshua,

there appears to be an inconsistency in the Win32 PerlScript
layer that causes problems with Apache::ASP compatibility.

if i store something in global.asa into $Application

use strict; 
use vars qw( $Application $Server); # needed for win32-PerlScript with use strict

sub Application_OnStart { 
        my $csum = "foo";
        $Application->Contents->SetProperty('Item', 'Checksum', $csum)
}

then try to access it in somepage.asp, only these stmts. work

        $Application->Contents('Checksum')
        $Application->Contents->Item('Checksum')

the one syntax which doesn't work is:

  tried:  $Application->Contents('Checksum')->Item()
        (which works for $Request and $Response)

  error:  PerlScript Error error '80004005' 
          (in cleanup) Can't call method "Item" without a package or object reference 

but this (with PerlSetVar CollectionItem 1) is the one
syntax you really need to work for cross platform 
compatibility. 

for some reason it seems $Application behaves differently
than $Request and $Response. is there anything that can
be done in Apache::ASP to support this inconsistency for
the sake of compatibility?

thanks,
jr

-- 
------------------------------------------------------------------------
Joel W. Reed                                                412-257-3881
--------------All the simple programs have been written.----------------


PGP signature

Reply via email to