View Full Version : how to include files in perl:is there anything like <? readfile("b.inc"); ?> in perl
sugata_bhar
03-02-2006, 12:01 PM
i have header footer left-column right column in html.Is there anyway to include each in the main template just as php has <? readfile("b.inc"); ?> or <?php include(); ?>.
please help
FishMonger
03-02-2006, 04:53 PM
There are many templating approaches in Perl. The easiest to start with is probably the HTML::Template module.
<TMPL_INCLUDE NAME="header.tmpl">
main body of the html
<TMPL_INCLUDE NAME="footer.tmpl">
http://search.cpan.org/~samtregar/HTML-Template-2.8/Template.pm#TMPL_INCLUDE
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.