when i say "straight perl inline html" i refer to html written in a print statement such as
print " <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\"> <head> <title>Floot Fire Privacy</title> <link href=\"/css/style1.css\" rel=\"stylesheet\" type=\"text/css\" /> </head> ... </html>"; 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") On Mon, May 25, 2009 at 9:07 PM, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote: > jm wrote: >> >> it's not Mason; it's strictly homegrown code. >> >> 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. > > -- > 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/ > > > -- since this is a gmail account, please verify the mailing list is included in the reply to addresses -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/