OK, the code works at the command line, and the output is exactly what I want. But it still does not work when called from a browser. Here is the source I get from the browser
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252 +"></HEAD> <BODY></BODY></HTML>


and here is what I get at the command line
Content-type: text/html <html> <head> <title>dbtest </title> </head> <body><center><table Border=1><tr><td>AA</td> <td>Desktop / Deskside</td> <td>2660</td></tr><tr><td>AB</td> <td>Laptop</td> <td>432</td></tr><tr><td>AC</td> <td>Handheld / PDA</td> <td>18</td></tr><tr><td>AD</td> <td>Processor Upgrade</td> <td>6</td></tr><tr><td>AE</td> <td>Mainboard</td> <td>30</td></tr><tr><td>AF</td> <td>System Cabinet</td> <td>27</td></tr><tr><td>AG</td> <td>UPS / Power Device</td> <td>138</td></tr><tr><td>AH</td> <td>System / Power Cable</td> <td>20</td></tr><tr><td>AI</td> <td>IO Adapter / Connectivity</td> <td>6</td></tr><tr><td>AJ</td> <td>System Accessory</td> <td>33</td></tr><tr><td>AK</td> <td>System Service / Support</td> <td>6</td></tr><tr><td>BA</td> <td>Random Access Memory</td> <td>70</td></tr><tr><td>BC</td> <td>Cache Memory</td> <td>2</td></tr><tr><td>BD</td> <td>Flash Memory</td> <td>77</td></tr><tr><td>BE</td> <td>Read-Only Memory</td> <td>1</td></tr><tr><td>CA</td> <td>Hard Disk Drive</td> <td>82</td></tr><tr><td>CC</td> <td>Removable Disk Drive</td> <td>76</td></tr><tr><td>CD</td> <td>Removable Tape Drive</td> <td>123</td></tr><tr><td>CE</td> <td>Network Storage</td> <td>13</td></tr><tr><td>CF</td> <td>Removable Media</td> <td>7</td></tr><tr><td>CG</td> <td>Storage Adapter</td> <td>22</td></tr><tr><td>CH</td> <td>Storage Cable</td> <td>2</td></tr><tr><td>CI</td> <td>Storage Cabinet</td> <td>6</td></tr><tr><td>CJ</td> <td>Storage Accessory</td> <td>38</td></tr><tr><td>DA</td> <td>Key-Entry Device</td> <td>3</td></tr><tr><td>DB</td> <td>Pointing Device</td> <td>17</td></tr><tr><td>DC</td> <td>Game Controller</td> <td>5</td></tr><tr><td>DD</td> <td>Scanner</td> <td>18</td></tr><tr><td>DG</td> <td>Video Input</td> <td>9</td></tr><tr><td>DI</td> <td>Input Cable</td> <td>16</td></tr><tr><td>DJ</td> <td>Input Accessory</td> <td>3</td></tr><tr><td>EA</td> <td>Monitor Desktop</td> <td>25</td></tr><tr><td>EC</td> <td>Projector / Panel</td> <td>7</td></tr><tr><td>ED</td> <td>Printer / Plotter</td> <td>130</td></tr><tr><td>EE</td> <td>Audio Output</td> <td>2</td></tr><tr><td>EF</td> <td>Video Adapter</td> <td>2</td></tr><tr><td>EG</td> <td>Audio Adapter</td> <td>1</td></tr><tr><td>EH</td> <td>Output Cable</td> <td>8</td></tr><tr><td>EI</td> <td>Printer Consumables</td> <td>9</td></tr><tr><td>EJ</td> <td>Output Accessory</td> <td>9</td></tr><tr><td>EK</td> <td>Output Service / Support</td> <td>3</td></tr><tr><td>FA</td> <td>Modem / Communication</td> <td>116</td></tr><tr><td>FB</td> <td>Communication Device</td> <td>3</td></tr><tr><td>FC</td> <td>Concentrator / Multiplexer</td> <td>54</td></tr><tr><td>FD</td> <td>Repeater / Transceiver</td> <td>19</td></tr><tr><td>FE</td> <td>Hub / Switch</td> <td>121</td></tr><tr><td>FF</td> <td>Bridge / Router</td> <td>95</td></tr><tr><td>FG</td> <td>Network Device</td> <td>206</td></tr><tr><td>FH</td> <td>Network Adapter</td> <td>87</td></tr><tr><td>FI</td> <td>Network Cable</td> <td>512</td></tr><tr><td>FJ</td> <td>Network Accessory</td> <td>11</td></tr><tr><td>FK</td> <td>Network Service / Support</td> <td>30</td></tr><tr><td>GA</td> <td>Operating System</td> <td>25</td></tr><tr><td>GB</td> <td>Application</td> <td>2859</td></tr><tr><td>GC</td> <td>Software Service / Support</td> <td>2</td></tr><tr><td>HA</td> <td>Reference Material</td> <td>2</td></tr><tr><td>JD</td> <td>Camcorder</td> <td>27</td></tr><tr><td>KA</td> <td>Home Audio</td> <td>25</td></tr><tr><td>KB</td> <td>Portable Audio</td> <td>17</td></tr><tr><td>PB</td> <td>Cellular / PCS</td> <td>1</td></tr></table></center></body><html>

In reply to Re: perl, IIS, and sql Server help by esolm
in thread perl, IIS, and sql Server help by esolm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.