On 7/6/07, Zielfelder, Robert <[EMAIL PROTECTED]> wrote:
When I use Firefox to display/run the script everything works as it should. When I use IE I get a blank page.
At least you didn't crash IE!
print <<_END_OF_TEXT_
{ oodles of HTML omitted }
@page
{ still more oodles of HTML omitted }
_END_OF_TEXT_ ;
You seem to be interpolating @page into that gigantic here-doc. Not that there's anything exactly wrong with that, except that you never seem to have used @page anywhere else in your program. (Did you leave out a big piece of your program?) If you really do want to interpolate just one thing into a giant document, though, there's always the risk that a hidden $ or @ in the giant document will go un-backslashed and cause some mischief. And I like to keep the semicolon reasonably close to the rest of the line when I can. So I might do something like this: my @page = &supply_web_page(); my $giant_string = <<'_END_OF_GIANT_STRING_'; blah blah blah single quotes don't mind $ or @ MAGIC_TOKEN Or even "quotes" blah blah blah _END_OF_GIANT_STRING_ # Now, interpolate and output $giant_string =~ s/MAGIC_TOKEN/@page/; print $giant_string; I recommend that you add "use strict" and "use warnings" to the top of your program, and use the CGI module's debugging abilities to debug it from the command line before you turn it loose on your webserver. If you get any unexplained complaints from perl, see how the perldiag manpage says to fix those problems. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/