At 4:37 PM 8/3/00, T.Ruschival wrote: >Hello Folks, > > >May it be that Active Perl hehaves differently from Macperl? >In my Macperl output window following code results in a readable HTML Page >linebreaks after each line of the original Text. > [snip] >If I execute this script on my Webserver (running microsoft IIS 5 and Active >Perl) I receive somethong like: > ><body><P>text (without any linebreaks) ></P> I develop in MacPerl and deploy lots of my stuff on NTs with IIS and Active Perl. Where and how are you seeing the above output? The main tricky area in my work has to do with making sure that the end-of-line (EOL) character(s) are right for the OS under which the file is being accessed. Most of the time there's no problem, because of two things: a) my FTP programs (Fetch, Anarchie, BBEdit) handle conversion of EOL between OSes automatically; and b) Perl uses \n to stand for the native EOL of the system it's operating in, so I can write 100% cross-platform code without EOL switches. Problems arise when I've accessed a file from a different OS in some way other than a) or b). Most frequently this occurs via web clients: downloading files, doing "Save As..." from a web page, Viewing Source, etc. This applies to downloading or saving the output of CGIs, too, because your web client presents whatever text comes from the server; how it originated is irrelevant. I haven't watched this carefully enough to see a pattern, for one thing because I don't always work on things as soon as I download them. Another path for anomalous EOL behavior is when a script itself grabs a file from a machine with a different OS. That's why I ask where and how you see that output. Then it might be possible to identify (or eliminate) some possible causes of the problem. One diagnostic would be to save that output to a text file on your Mac, open the file with BBEdit, call "Save As...", click the "Options" button, and see which OS "Line Breaks" is set to. (Other programs besides BBEdit can reveal linebreaks, too.) By the way, you don't need to escape <, >, or / in Perl double-quoted strings, so your statement print "\<P\> $i \<\/P\> \n"; is fine as print "<P> $i </P> \n"; HTH 1; -- - Bruce __Bruce_Van_Allen___bva@cruzio.com__Santa_Cruz_CA__ ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org