[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] newlines, carriage returns, MacPerl, and the CGI glue



Howdy!

   I'm looking for a definitive (and quick!) summary of when the 
different kinds of newlines do and do not matter to MacPerl.

1) Will MacPerl run a script with non-Mac newlines (e.g. Unix newlines)?

2) Will it run a Perl library or module correctly if it has the wrong newlines?

3) Will the CGI "glue" work correctly if you open a script with the 
wrong newlines and "Save As..." "CGI Script"?

(This is for my Perl Monthly column, due very soon, which is why the 
rush.  Normally I'd do some experiments, but don't know if I have 
time to hit all the possible trouble spots.)

(I understand how newlines work in data files.  By default, MacPerl 
expects Macintosh newlines, but by setting built-in variables 
correctly, you can work with foreign newlines.)

Thanks!

-David-
David Steffen, Ph.D.
President, Biomedical Computing, Inc. <http://www.biomedcomp.com/>
Phone: (713) 610-9770 FAX: (713) 610-9769 E-mail: steffen@biomedcomp.com

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org