Leser: 3
![]() |
|< 1 ... 5 6 7 8 9 >| | ![]() |
83 Einträge, 9 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Define the CRLF sequence. I can't use a simple "\r\n" because the meaning
# of "\n" is different on different OS's (sometimes it generates CRLF, sometimes LF
# and sometimes CR). The most popular VMS web server
# doesn't accept CRLF -- instead it wants a LR. EBCDIC machines don't
# use ASCII, so \015\012 means something different. I find this all
# really annoying.
$EBCDIC = "\t" ne "\011";
if ($OS eq 'VMS') {
$CRLF = "\n";
} elsif ($EBCDIC) {
$CRLF= "\r\n";
} else {
$CRLF = "\015\012";
}
QuoteIch glaube, daà sich deine Interpretation auf die Zeilen mit dem Sternchen (*) in perldoc perlport bezieht.
Da sehe ich für die Dosen den erwarteten Unterschied, für Mac-OS kleiner 9 sehe ich bislang kein Argument, welches meiner Annahme widerspricht.
1
2
3
4
Perl uses "\n" to represent the "logical" newline, where what is logical may depend on the platform in use. In MacPerl, "\n" always
means "\015". In DOSish perls, "\n" usually means "\012", but when accessing a file in "text" mode, STDIO translates it to (or
from) "\015\012", depending on whether you&âre reading or writing. Unix does the same thing on ttys in canonical mode. "\015\012"
is commonly referred to as CRLF.
![]() |
|< 1 ... 5 6 7 8 9 >| | ![]() |
83 Einträge, 9 Seiten |