jm wrote:
Gunnar Hjalmarsson wrote:
jm wrote:
seems to be some requirement for html <head> via a module call that's
not necessary in straight perl inline html.
I'm still confused about what the real problem is, but it sounds like
you are on the wrong track. AFAIK, there is no "straight perl inline
html". HTML is HTML, whether it is on a static page or generated by a
program, e.g. a Perl program.
when i say "straight perl inline html" i refer to html written in a
print statement
<snip>
this works as expected. however, when i put the html code in a module
(the one i listed previously), assign that call to a variable and try
to use that variable in the print statement, such as
my $page_start = &html_start();
print "
$page_start
<body>
...
</html>";
then the <head> ... </head> code does not process correctly; it is
ignored unless there is a 2nd pair of <head></head> tags in the print
statement ("perl inline html")
I'm unable to reproduce that behavior. For somebody to be able to help
you, I believe you need to post a *complete* but *minimal* set of code
that people can copy and run, and that demonstrates the problem.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/