<& file &> is the way to go. You may be wanting to share staticly defined variables among multiple files.. For that you would want to build a .pm perl module and then call it via the 'use' declaration.
Chapter 11 of Programming PERL (O'Reilly) is probably your best starting point for module creation. http://www.unix.org.ua/orelly/perl/prog3/ch11_01.htm Also see http://masonhq.com/?ModulesInsteadOfPerlComponents if this helps. cheers, Kris Message from Kris Yates [EMAIL PROTECTED] Automated Data Backup http://www.worldspice.net/services/offsitedatabackup.html ----- Original Message ----- From: "Luke Vanderfluit" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, March 01, 2006 6:27 PM Subject: [Mason] include stuff from a common file > Hi. > I'm relatively new to Mason. > A simple question. > How do you include a file in another file. > > For example: > I have an html file and it has a part that is common to many other html > files. > Instead of writing code for each file I want to be modular and write > just the one file, then include it. I could do this with SSI. > Is there a simple way to do this in Mason. > > I've tried > > main file > c o d e > <& name of file to include &> > m o r e c o d e > > Thanks for you any help. > Kind regards. > > Luke. > > -- > Luke > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Mason-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mason-users > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.375 / Virus Database: 268.1.1/272 - Release Date: 3/1/2006 > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users

