in reply to cgi print file to screen

You need either <br> or <pre> tags, as notice above. Also, you'll want to html-escape the lines, because otherwise
Input that </pre>looks <like> this &amp;this
Will look quite different from what you'd expect.

Use

print $query->escapeHTML($line),"<br>";
or something similar.

updated: fixed typos

Replies are listed 'Best First'.
Re^2: cgi print file to screen
by Anonymous Monk on May 26, 2005 at 14:47 UTC
    thanks for the helpful html comment; works fine now cheers