in reply to Template Parsing
If this simple replace is really enough for your template, then go with it. However, if you see any need for fancier constructs like loops and conditionals, please try using a module from CPAN for it.{ local $/; open(MYFOOT,"<$foot"); my $weather_template = <MYFOOT>; close(MYFOOT); }
You don't really provide enough information to determine why you are seeing code in the browser (HTML code? Perl code?), but I don't see you printing a header before sending this content. You may also have your web server or permissions set up wrong, preventing it from executing your code.
|
|---|