On 10/4/01 10:20 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm not really clear on how PERL works when writing HTML. > > when writing to a console, you simply use \n to move to the next line > but using the same code in a browser I get everything on the same line. > > is there a way that when writing to HTML, the \n gets converted to <br> > or > do you have to explicitly print out every <br>? > > and one more question, here is a piece of my program > > > use Win32::ODBC; > > print "Content-type: text/html\n\n"; > print "<HTML>\n"; > print "<BODY BGCOLOR=#FFFFFF>\n"; > > $DSN = "WIP"; > #print "Opening database...\n"; > if (!($db = new Win32::ODBC($DSN))){ > print "Error connecting to $DSN\n"; > print "Error: " . Win32::ODBC::Error() . "\n"; > exit; > } Use HERE DOCS - print <<_HereIBe; Content-type: text/html <HTML> <HEAD> ... HereIBe Also - are you checking to see if there are security/file premissions errors or that the file is not already OPNE? HTH; -Sx- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]