Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
it complains about the last line, something that I haven't "closed" at EOF. What am I doing wrong?open OUT, ">ResultsTable.html"; print OUT "<html>\n<body>\n"; print OUT "<head>\n"; print OUT <<HEADS script type="text/javascript"> function altRows(id){ if(document.getElementsByTagName){ var table = document.getElementById(id); var rows = table.getElementsByTagName("tr"); for(i = 0; i < rows.length; i++){ if(i % 2 == 0){ rows[i].className = "evenrowcolor"; }else{ rows[i].className = "oddrowcolor"; } } } } window.onload=function(){ altRows('alternatecolor'); } </script> <style type="text/css"> table.altrowstable { font-family: verdana,arial,sans-serif; font-size:11px; color:#333333; border-width: 1px; border-color: #a9c6c9; border-collapse: collapse; } table.altrowstable th { border-width: 1px; padding: 8px; border-style: solid; border-color: #a9c6c9; } table.altrowstable td { border-width: 1px; padding: 8px; border-style: solid; border-color: #a9c6c9; } .oddrowcolor{ background-color:#d4e3e5; } .evenrowcolor{ background-color:#c3dde0; } </style> HEADS print OUT "</head></body></html>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print large text into output file
by daxim (Curate) on Jun 28, 2013 at 14:49 UTC | |
|
Re: Print large text into output file
by ww (Archbishop) on Jun 28, 2013 at 15:06 UTC | |
|
Re: Print large text into output file
by Anonymous Monk on Jun 28, 2013 at 14:50 UTC | |
by Anonymous Monk on Jun 28, 2013 at 14:51 UTC |