Remember that when using perl, you output is html (usually). The /n will start a new line in your html source, but won't show up in a web browser (unless you view the source).
It is a good practice to use /n with <br> to create a new line in your html source, otherwise debugging becomes nearly impossible since your html source will show up as one large continuous line of text.. Paul Alger -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Dixon Sent: Thursday, June 24, 2004 3:08 AM To: sambar List Member Subject: [sambar] still trying... If I may add my two cents on this subject. The \n and \t will only work when used to write to a file. If your wanting html output then you would need to use html code such as <br> for line break. Just my two cents of input. Chris cherie wrote: >>Have you tested your script in a dos box? >>cd\path to script\ >>script name > errors.txt >> >>Peter >>Peter: Thank you some more. My script is in > > C:\temp\sambar60-1\cgi-bin\ It is called x.pl. Here it > is:[quote:d9555c8967]#!C:/Perl/bin/perl.exe -wT > print "backslash n won't work for newline or backslash t for tab! > \n"; > print "Hello,World!\tHelloWorld!\nHello,World!";[/quote:d9555c8967] > > In IE, http://localhost/cgi-bin/x.pl prints out one line only. The > 'hash line' points to my installation in C:\Perl\ yesterday. > > If I open a DOS window on my Windows98 machine, and cd to > C:\temp\sambar60-1\cgi-bin\ I can then do a DOS dir command and I > see that x.pl is present. > I then type x.pl>errors.txt and the DOS line says > Bad command or file name > > if I type C:\temp\sambar60-1\cgi-bin\x.pl > errors.txt the same > thing happens. Somebody told me to try ./x.pl or > /x.pl>errors.txt but the same thing comes back: Bad command or > file name. This script works from the browser, albeit without \n > etc. I'm in way over my head, I think. > My friend says she had a lot of problems like this in windows and I > should find a UNIX server to use. Or Linux. > > ------------------------------------------------------- > To unsubscribe please go to http://www.sambar.ch/list/ > > > > > > ------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/ --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.710 / Virus Database: 466 - Release Date: 6/23/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.710 / Virus Database: 466 - Release Date: 6/23/2004 ------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/
