On Oct 18, [EMAIL PROTECTED] contorted a few electrons to say...
asp> the one syntax which doesn't work is:
asp> 
asp>   tried:  $Application->Contents('Checksum')->Item()
asp>    (which works for $Request and $Response)
asp> 
asp>   error:  PerlScript Error error '80004005' 
asp>      (in cleanup) Can't call method "Item" without a package or object reference 
asp> 
asp> but this (with PerlSetVar CollectionItem 1) is the one
asp> syntax you really need to work for cross platform 
asp> compatibility. 
asp> 
asp> for some reason it seems $Application behaves differently
asp> than $Request and $Response. is there anything that can
asp> be done in Apache::ASP to support this inconsistency for
asp> the sake of compatibility?

i guess the fix would be something like:

--- /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm.orig   Thu Oct 18 14:23:40 2001
+++ /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm        Thu Oct 18 14:22:45 2001
@@ -4496,6 +4496,16 @@ sub GetSession {
     }
 }
 
+sub Contents { 
+    my($self, $key) = @_;
+
+    if(defined $key) {
+       $self->Item($key)->Item(); # weird hack for compatibility
+    } else {
+       $self;
+    }
+}
+
 1;
 
 # Session Object


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


PGP signature

Reply via email to