If all you want is a global stash (as in TT), then you could create a global called $stash visible to all components:
allow_globals => [qw($stash)] ... $interp->set_global(stash => { ... }); This is no different than package HTML::Mason::Commands; use vars qw($stash); $HTML::Mason::Commands::stash = { ... }; On Dec 14, 2007, at 3:48 PM, Anthony Ettinger wrote: > On Dec 14, 2007 1:45 PM, Perrin Harkins <[EMAIL PROTECTED]> wrote: >> On Dec 14, 2007 3:04 PM, Steven Saner <[EMAIL PROTECTED]> wrote: >>> Don't you have a reference to the MasonX::WebApp object defined as a >>> global variable, $app or whatever? You could store the data in that >>> object. >> >> Is there any advantage you know of to using something like >> $app->data() over $m->notes()? >> >> - Perrin >> > > > Is $app->data() something that's available as a standard? > > I use $m->notes() for this sort of stuff, but the problem I have is > its only available to mason parts (not backend perl modules that are > loaded). > > -- > Anthony Ettinger > 408-656-2473 > http://anthony.ettinger.name > > var (bonita, farley) = new Dog; > farley.barks("very loud"); > bonita.barks("at strangers"); > > ---------------------------------------------------------------------- > --- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ > marketplace > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users