Joel Reed wrote:
> 
> this may be a dumb patch to Apache::ASP (at least it is my first).
> 
> Rationale:
> 
> i have the following issues with the current implementation of $Application
> 
>         1. everything you store in $Application->{foo} must be
>         serializable my MLDBM. (right?) i have SWIG'd c++ classes for
>         which this will not work.
> 
>         2. limitation #1 seems to limit Apache:ASP's usefulness as a
>         cross-platform solution to ActivePerl/IIS/ASP scripts you
>         want to move to linux, etc. i want to do this - not sure if
>         this is really a key thing for joshua though...
> ...

What you are talking about is just a global that you access
in your scripts.  You could declare this in your global.asa
with 

  use vars qw($Application2);

Then just use it like $Application2->{key} = $value;

I use this kind of in process data caching all the time,
and you will see that Apache::DBI does something similar.

What you don't get here is interprocess communication
which is what the use of $Application is geared for, that
the data is stored is some process neutral location, so
web requests may access the data independent of the httpd 
process they are coming from.

--Joshua

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Reply via email to