Gary Yang has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I do not know if this is a Perl or html question. Please help.
My Perl script runs at Server Site. When the script gets called, it outputs (prints) a progress html page displayed at Client site. When the program ends, it generates a new html page. This new html page should replace that progress page. However, instead of replacing the ProgressPage, the new html page is appended to ProgressPage. I use Perl here doc to print html pages. Below is the sample code.
First, print Progress Page.
Print <<ProgressPage; <html> <head> ….. </head> <body> ….. </body> </html> ProgressPage
Then, print the new HTML page. I want the new HTML page (NewPage) replaces ProgressPage. But, instead of replacing it, NewPage appends to ProgressPage. Can someone tell me how to replace ProgressPage with NewPage?
print <<NewPage; <html> <head> …… </head> <body> …… </body> </html> NewPage
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to replace the output (new html page)?
by Anonymous Monk on Jan 19, 2012 at 04:04 UTC | |
|
Re: How to replace the output (new html page)?
by Anonymous Monk on Jan 19, 2012 at 11:24 UTC | |
by Anonymous Monk on Jan 19, 2012 at 17:32 UTC | |
by Anonymous Monk on Jan 19, 2012 at 11:43 UTC |