Hello, I'm new to Mason (coming from Embperl) and I have many problems with variable visibility.
The site I'm designing is based on a autohandler which calls <& menu.html &>. menu.html calls several <& submenu_xxx.html &> I have declared a global "callbacks" hash that I fill in every submenu_xxx.html After the menus are displayed I call, in turn, every declared callback that matches fields present in %ARGS As you see, this makes many calls with even more parameter passing. The problem is I have to pass all global variables and constants on every page and I must say this is unusable, errors are badly reported (always come from autohandler). I guess this has to do with the design I have used (I'm converting an Embperl project) but I wonder if there is a place where I can read information on how to share variables and functions easily. I know I can pre-declare every variables in apache's conf but it's ugly to do it for every single constant. I have the same problem with sharing routines. The least abject I have found is using a module but the variables I declare therein are not visible outside. I'm sure my ignorance in Perl is the main responsible of my frustration but I have been struggling with Mason for two weeks now and I can't waste so much time trying to use this framework. Please help ! -- Jean-Christophe Boggio ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users