basm101 has asked for the wisdom of the Perl Monks concerning the following question:
I am also having problems getting it to use Courier font in my Linux/RedHat/Netscape browser.
This section of code is where I open the file (path stored in $data_from_MySQLdb) and it opens and prints to the browser - but as one long line, all the original file whitespace and new lines are lost.
Any ideas ? Am I messing up my using perl with html in some way ?my ($data_from_MySQLdb); $sth->bind_columns(undef,\$data_from_MySQLdb); while($sth->fetch()){ open(MYTREEFILE,"$data_from_MySQLdb") or die; while(<MYTREEFILE>){ print STDOUT "$_"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI/MySQL and the vanishing \n
by pfaut (Priest) on Feb 04, 2003 at 16:13 UTC | |
by basm101 (Acolyte) on Feb 04, 2003 at 16:21 UTC | |
by pfaut (Priest) on Feb 04, 2003 at 16:35 UTC | |
by tachyon (Chancellor) on Feb 04, 2003 at 22:12 UTC |