<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mark Fowle wrote:
<blockquote
cite="mid:759E3F14A23281479A85A082BBCFA5429EA151@sbsa.NavicomInc.local"
type="cite">
<div dir="ltr" align="left"><span class="390145420-04022011"><font
color="#0000ff" face="Arial" size="2">line ends in windows tend to be
\r\n.</font></span></div>
<div dir="ltr" align="left"><span class="390145420-04022011"><font
color="#0000ff" face="Arial" size="2">comp safely removes one line end
character, as aposed to chop that removed one cjharacter from the end
of a line.</font></span></div>
<div dir="ltr" align="left"><span class="390145420-04022011"><font
color="#0000ff" face="Arial" size="2">so chomp$_; chomp $_; is safe
and will work on any computer OS.</font></span></div>
</blockquote>
Right, but it won't do what the user wants, because chomp just removes
whatever is in $/ which defaults to "\n".<br>
<br>
It's strongly recommended to read the perlport man page if you have to
use windows.<br>
<br>
Matt.<br>
</body>
</html>