skeight has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
I'm working on some CGI development in Perl (obviously, heh) and I output _alot_ of html from my perl scripts. I was wondering what the best way to do this is. I can think of the following ways.
1. Use CGI.PM, which I don't have alot of experience with
2. Simply 'print' the html code (ie. print "<table><tr>..")
3. Open html files and print them out
Which of these would yeild the quickest results, if there is a difference at all. When it comes to simply printing the html out does perl take longer to print one long string or many shorter strings.
ie.
Thanks for your input.
skeight
1. Use CGI.PM, which I don't have alot of experience with
2. Simply 'print' the html code (ie. print "<table><tr>..")
3. Open html files and print them out
Which of these would yeild the quickest results, if there is a difference at all. When it comes to simply printing the html out does perl take longer to print one long string or many shorter strings.
ie.
ORprint "<table><tr><td>...</td></tr></table>";
print "<table>", "<tr>", "<td>", "...", "</td>", "</tr>", "</table>";
Thanks for your input.
skeight
Back to
Seekers of Perl Wisdom