Re: 答复: A challenge to explain the str ange results (under linux)
Daniel Tiefnig <[email protected]> Thu, 12 Jun 2008 15:15:29 +0200
| Newsgroups | gmane.comp.lang.perl.golf |
|---|---|
| Message-ID | <[email protected]> |
Zhu Shanshan wrote: > As you said, when I substituted "s/\r\n$//" with "chomp", it did > work. After looking up the explanation of "chomp" in perldoc, I found > "chomp", which I always used to remove the newline previous, removes > any trailing string that corresponds to the current value of "$/". Hej, JFTR, you may also want to have a look at "perldoc perlport". The first issue discussed is "Newlines". lg, daniel