10.9 What We Didn't Talk AboutThere is much more to Embperl that we didn't discuss. Here are a few topics that you might investigate as you proceed in your Open Source web development career. 10.9.1 Persistent Database ConnectionsIn this project, each time one of the pages is requested , a new database connection is made. This can generate a lot of overhead, especially if the page receives a lot of hits. Embperl can use Apache::DBI to maintain persistent connections to the MySQL database. For more information, check out Apache::DBI at CPAN . 10.9.2 Session Handling with %udat and %mdatEmbperl allows you to easily track sessions with %udat , %mdat , and Apache::Session . The module Apache::Session must be installed for the session handling to work. The hash %udat , if used within an HTML page, creates a session for the user and sends session information to the user via a cookie. This session is then remembered the next time the user visits the site, restoring %udat to the value from the last visit. The hash %mdat , if used with an HTML page, stores persistent data for the page/module that was requested. This information is restored into %mdat the next time the page is requested, regardless of which user requests it. For more information, see perldoc HTML::Embperl . 10.9.3 Tons of VariablesMany more Embperl variables are available. The following list is just a sample. For a complete list, check out the Embperl web page or perldoc .
10.9.4 XML and XSLT SupportStarting with version 2.0b4, Embperl integrates with XML and XSLT. See the Embperl web page or perldoc for details. |